Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP]fix ci #122

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions misc/.cppcheck-supp
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
*:include/rapidjson/itoa.h:141
*:include/rapidjson/itoa.h:216
*:include/llvm/SmallVector.h:55
*:include/llvm/SmallVector.h:88
*:include/llvm/SmallVector.h:134
*:include/llvm/SmallVector.h:162
*:include/llvm/SmallVector.h:164
*:include/llvm/SmallVector.h:214
*:include/llvm/SmallVector.h:515
*:include/llvm/SmallVector.h:516
*:include/llvm/SmallVector.h:546
*:include/llvm/SmallVector.h:715
*:include/llvm/SmallVector.h:718
*:include/llvm/SmallVector.h:726
Expand Down
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
Loading