Skip to content

Commit

Permalink
Merge branch 'douban:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
kentslaney authored Nov 29, 2023
2 parents efb1338 + 9522d8a commit dd769de
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
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

0 comments on commit dd769de

Please sign in to comment.