summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Williams <dwilliams@kenzan.com>2018-10-19 10:37:47 -0600
committerDaniel Williams <dwilliams@kenzan.com>2018-10-19 10:37:47 -0600
commit137fac1a57bb7d2a5bfa60c23e960cee9eaaa57a (patch)
tree5f6ac419f59021dba4e8e21b82ac2801a68bde12
parent80af0ad26838ea243c2aefdbeee5ec8188750399 (diff)
downloadredis-py-137fac1a57bb7d2a5bfa60c23e960cee9eaaa57a.tar.gz
Revert "Adding a couple of tests for the SHUTDOWN command and the added NOSAVE option."
This reverts commit 80af0ad26838ea243c2aefdbeee5ec8188750399. While these tests worked on my local system that would restart Redis, the Redis server on TravisCI wouldn't restart, so the tests are failing.
-rw-r--r--tests/test_commands.py28
1 files changed, 0 insertions, 28 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py
index 3ab1be1..b9b9b66 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -126,34 +126,6 @@ class TestRedisCommands(object):
def test_ping(self, r):
assert r.ping()
- def test_shutdown(self, r):
- r.shutdown()
- # Attempt to ping the server after the shutdown. The library should
- # reconnect, but will return a connection error for the next couple
- # of attempts. This loop will reattempt a ping until a success or
- # one second timeout.
- for i in range(10):
- try:
- r.ping()
- break
- except:
- time.sleep(0.1)
- assert r.ping()
-
- def test_shutdown_nosave(self, r):
- r.shutdown(save=False)
- # Attempt to ping the server after the shutdown. The library should
- # reconnect, but will return a connection error for the next couple
- # of attempts. This loop will reattempt a ping until a success or
- # one second timeout.
- for i in range(10):
- try:
- r.ping()
- break
- except:
- time.sleep(0.1)
- assert r.ping()
-
def test_slowlog_get(self, r, slowlog):
assert r.slowlog_reset()
unicode_string = unichr(3456) + u('abcd') + unichr(3421)