Skip to content

Commit 0011d6f

Browse files
committed
fix broken test
1 parent 9a1c2e5 commit 0011d6f

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

tests/proxy/map_nearcache_test.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,16 @@ def assertion():
6969
def test_invalidate_nonexist_key(self):
7070
self._fill_map_and_near_cache(10)
7171
initial_cache_size = len(self.map._near_cache)
72-
script = """
73-
map = instance_0.getMap("{}");
74-
map.put("key-99","x");
75-
map.put("key-NonExist","x");
76-
map.remove("key-NonExist")""".format(
77-
self.map.name
72+
script = (
73+
"""
74+
var map = instance_0.getMap("%s");
75+
map.put("key-99","x");
76+
map.put("key-NonExist","x");
77+
map.remove("key-NonExist");"""
78+
% self.map.name
7879
)
79-
response = self.rc.executeOnController(self.cluster.id, script, Lang.PYTHON)
80+
81+
response = self.rc.executeOnController(self.cluster.id, script, Lang.JAVASCRIPT)
8082
self.assertTrue(response.success)
8183
self.assertEqual(initial_cache_size, 10)
8284

0 commit comments

Comments
 (0)