Skip to content

Commit

Permalink
[WIP]fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
lexdene committed Nov 29, 2023
1 parent fbf4acf commit 110f163
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/shabby/reconnect_delay.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ def test_hard_server_error():

assert mc.set('foo', 1)
memcached_server_ctl('stop', normal_port)

# I dont know why,
# but the server is still connectable after stop.
# add a sleep to wait for the server quit
time.sleep(3)

assert not mc.set('foo', 1) # fail
memcached_server_ctl('start', normal_port)
assert not mc.set('foo', 1) # still fail
Expand Down
3 changes: 3 additions & 0 deletions tests/test_cmemcached_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ class NoPickle(object):
def __getattr__(self, name):
pass

def __getstate__(self):
raise Exception('can not be pickled')


class CmemcachedRegressionCase(unittest.TestCase):

Expand Down

0 comments on commit 110f163

Please sign in to comment.