Skip to content

Commit 0d89752

Browse files
opapyopapy
authored andcommitted
fix test
1 parent 33d8dbe commit 0d89752

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_backend.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ def test_split_servers(get_cluster_info):
2525
}
2626
backend._lib.Client = Mock()
2727
assert backend._cache
28-
get_cluster_info.assert_called_once_with('h', '0')
29-
backend._lib.Client.assert_called_once_with(servers)
28+
get_cluster_info.assert_called_once_with('h', '0', None)
29+
backend._lib.Client.assert_called_once_with(servers, ignore_exc=True)
3030

3131

3232
@patch('django.conf.settings', global_settings)
@@ -44,11 +44,11 @@ def test_node_info_cache(get_cluster_info):
4444
backend.get('key1')
4545
backend.set('key2', 'val')
4646
backend.get('key2')
47-
backend._lib.Client.assert_called_once_with(servers)
47+
backend._lib.Client.assert_called_once_with(servers, ignore_exc=True)
4848
eq_(backend._cache.get.call_count, 2)
4949
eq_(backend._cache.set.call_count, 2)
5050

51-
get_cluster_info.assert_called_once_with('h', '0')
51+
get_cluster_info.assert_called_once_with('h', '0', None)
5252

5353

5454
@patch('django.conf.settings', global_settings)

0 commit comments

Comments
 (0)