@@ -126,11 +126,11 @@ def test_set_multi_success(self):
126
126
client = self .make_client ([b"STORED\r \n " ])
127
127
# Alias for set_many, a convienance function that calls set for every key
128
128
result = client .set_multi ({b"key" : b"value" }, noreply = False )
129
- self . assertTrue (result )
129
+ assert len (result ) == 0
130
130
131
131
spans = self .memory_exporter .get_finished_spans ()
132
132
133
- self .check_spans (spans , 2 , ["set key" , "set_multi key" ])
133
+ self .check_spans (spans , 1 , ["set_multi key" ])
134
134
135
135
def test_delete_not_found (self ):
136
136
client = self .make_client ([b"NOT_FOUND\r \n " ])
@@ -192,18 +192,18 @@ def test_delete_many_found(self):
192
192
spans = self .memory_exporter .get_finished_spans ()
193
193
194
194
self .check_spans (
195
- spans , 3 , ["add key" , "delete key" , "delete_many key" ]
195
+ spans , 2 , ["add key" , "delete_many key" ]
196
196
)
197
197
198
198
def test_set_many_success (self ):
199
199
client = self .make_client ([b"STORED\r \n " ])
200
200
# a convienance function that calls set for every key
201
201
result = client .set_many ({b"key" : b"value" }, noreply = False )
202
- self . assertTrue (result )
202
+ assert len (result ) == 0
203
203
204
204
spans = self .memory_exporter .get_finished_spans ()
205
205
206
- self .check_spans (spans , 2 , ["set key" , "set_many key" ])
206
+ self .check_spans (spans , 1 , ["set_many key" ])
207
207
208
208
def test_set_get (self ):
209
209
client = self .make_client (
@@ -243,7 +243,7 @@ def test_prepend_stored(self):
243
243
244
244
def test_cas_stored (self ):
245
245
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 )
247
247
self .assertTrue (result )
248
248
249
249
spans = self .memory_exporter .get_finished_spans ()
@@ -252,7 +252,7 @@ def test_cas_stored(self):
252
252
253
253
def test_cas_exists (self ):
254
254
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 )
256
256
assert result is False
257
257
258
258
spans = self .memory_exporter .get_finished_spans ()
@@ -261,7 +261,7 @@ def test_cas_exists(self):
261
261
262
262
def test_cas_not_found (self ):
263
263
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 )
265
265
assert result is None
266
266
267
267
spans = self .memory_exporter .get_finished_spans ()
@@ -445,7 +445,7 @@ def test_version_success(self):
445
445
def test_stats (self ):
446
446
client = self .make_client ([b"STAT fake_stats 1\r \n " , b"END\r \n " ])
447
447
result = client .stats ()
448
- assert client .sock .send_bufs == [b"stats \r \n " ]
448
+ assert client .sock .send_bufs == [b"stats\r \n " ]
449
449
assert result == {b"fake_stats" : 1 }
450
450
451
451
spans = self .memory_exporter .get_finished_spans ()
0 commit comments