File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments