@@ -126,11 +126,11 @@ def test_set_multi_success(self):
126126 client = self .make_client ([b"STORED\r \n " ])
127127 # Alias for set_many, a convienance function that calls set for every key
128128 result = client .set_multi ({b"key" : b"value" }, noreply = False )
129- self . assertTrue (result )
129+ assert len (result ) == 0
130130
131131 spans = self .memory_exporter .get_finished_spans ()
132132
133- self .check_spans (spans , 2 , ["set key" , "set_multi key" ])
133+ self .check_spans (spans , 1 , ["set_multi key" ])
134134
135135 def test_delete_not_found (self ):
136136 client = self .make_client ([b"NOT_FOUND\r \n " ])
@@ -192,18 +192,18 @@ def test_delete_many_found(self):
192192 spans = self .memory_exporter .get_finished_spans ()
193193
194194 self .check_spans (
195- spans , 3 , ["add key" , "delete key" , "delete_many key" ]
195+ spans , 2 , ["add key" , "delete_many key" ]
196196 )
197197
198198 def test_set_many_success (self ):
199199 client = self .make_client ([b"STORED\r \n " ])
200200 # a convienance function that calls set for every key
201201 result = client .set_many ({b"key" : b"value" }, noreply = False )
202- self . assertTrue (result )
202+ assert len (result ) == 0
203203
204204 spans = self .memory_exporter .get_finished_spans ()
205205
206- self .check_spans (spans , 2 , ["set key" , "set_many key" ])
206+ self .check_spans (spans , 1 , ["set_many key" ])
207207
208208 def test_set_get (self ):
209209 client = self .make_client (
@@ -243,7 +243,7 @@ def test_prepend_stored(self):
243243
244244 def test_cas_stored (self ):
245245 client = self .make_client ([b"STORED\r \n " ])
246- result = client .cas (b"key" , b"value" , b"cas" , noreply = False )
246+ result = client .cas (b"key" , b"value" , 1 , noreply = False )
247247 self .assertTrue (result )
248248
249249 spans = self .memory_exporter .get_finished_spans ()
@@ -252,7 +252,7 @@ def test_cas_stored(self):
252252
253253 def test_cas_exists (self ):
254254 client = self .make_client ([b"EXISTS\r \n " ])
255- result = client .cas (b"key" , b"value" , b"cas" , noreply = False )
255+ result = client .cas (b"key" , b"value" , 1 , noreply = False )
256256 assert result is False
257257
258258 spans = self .memory_exporter .get_finished_spans ()
@@ -261,7 +261,7 @@ def test_cas_exists(self):
261261
262262 def test_cas_not_found (self ):
263263 client = self .make_client ([b"NOT_FOUND\r \n " ])
264- result = client .cas (b"key" , b"value" , b"cas" , noreply = False )
264+ result = client .cas (b"key" , b"value" , 1 , noreply = False )
265265 assert result is None
266266
267267 spans = self .memory_exporter .get_finished_spans ()
@@ -445,7 +445,7 @@ def test_version_success(self):
445445 def test_stats (self ):
446446 client = self .make_client ([b"STAT fake_stats 1\r \n " , b"END\r \n " ])
447447 result = client .stats ()
448- assert client .sock .send_bufs == [b"stats \r \n " ]
448+ assert client .sock .send_bufs == [b"stats\r \n " ]
449449 assert result == {b"fake_stats" : 1 }
450450
451451 spans = self .memory_exporter .get_finished_spans ()
0 commit comments