@@ -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 " ])
@@ -191,19 +191,17 @@ def test_delete_many_found(self):
191191
192192 spans = self .memory_exporter .get_finished_spans ()
193193
194- self .check_spans (
195- spans , 3 , ["add key" , "delete key" , "delete_many key" ]
196- )
194+ self .check_spans (spans , 2 , ["add key" , "delete_many key" ])
197195
198196 def test_set_many_success (self ):
199197 client = self .make_client ([b"STORED\r \n " ])
200198 # a convienance function that calls set for every key
201199 result = client .set_many ({b"key" : b"value" }, noreply = False )
202- self . assertTrue (result )
200+ assert len (result ) == 0
203201
204202 spans = self .memory_exporter .get_finished_spans ()
205203
206- self .check_spans (spans , 2 , ["set key" , "set_many key" ])
204+ self .check_spans (spans , 1 , ["set_many key" ])
207205
208206 def test_set_get (self ):
209207 client = self .make_client (
@@ -243,7 +241,7 @@ def test_prepend_stored(self):
243241
244242 def test_cas_stored (self ):
245243 client = self .make_client ([b"STORED\r \n " ])
246- result = client .cas (b"key" , b"value" , b"cas" , noreply = False )
244+ result = client .cas (b"key" , b"value" , 1 , noreply = False )
247245 self .assertTrue (result )
248246
249247 spans = self .memory_exporter .get_finished_spans ()
@@ -252,7 +250,7 @@ def test_cas_stored(self):
252250
253251 def test_cas_exists (self ):
254252 client = self .make_client ([b"EXISTS\r \n " ])
255- result = client .cas (b"key" , b"value" , b"cas" , noreply = False )
253+ result = client .cas (b"key" , b"value" , 1 , noreply = False )
256254 assert result is False
257255
258256 spans = self .memory_exporter .get_finished_spans ()
@@ -261,7 +259,7 @@ def test_cas_exists(self):
261259
262260 def test_cas_not_found (self ):
263261 client = self .make_client ([b"NOT_FOUND\r \n " ])
264- result = client .cas (b"key" , b"value" , b"cas" , noreply = False )
262+ result = client .cas (b"key" , b"value" , 1 , noreply = False )
265263 assert result is None
266264
267265 spans = self .memory_exporter .get_finished_spans ()
@@ -445,7 +443,7 @@ def test_version_success(self):
445443 def test_stats (self ):
446444 client = self .make_client ([b"STAT fake_stats 1\r \n " , b"END\r \n " ])
447445 result = client .stats ()
448- assert client .sock .send_bufs == [b"stats \r \n " ]
446+ assert client .sock .send_bufs == [b"stats\r \n " ]
449447 assert result == {b"fake_stats" : 1 }
450448
451449 spans = self .memory_exporter .get_finished_spans ()
0 commit comments