From f9deeb09b6a51730ab21e8ecf4f12562ede2df9e Mon Sep 17 00:00:00 2001 From: Daniel Williams Date: Tue, 16 Oct 2018 14:30:38 -0600 Subject: [PATCH] Removing implemented commands from readme, and extending the sleep to make sure time stamps are different. --- README.rst | 3 --- test_fakeredis.py | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/README.rst b/README.rst index 5432b25..65e0edd 100644 --- a/README.rst +++ b/README.rst @@ -116,7 +116,6 @@ server ------ * bgrewriteaof - * bgsave * client kill * client list * client getname @@ -135,7 +134,6 @@ server * debug object * debug segfault * info - * lastsave * memory doctor * memory help * memory malloc-stats @@ -144,7 +142,6 @@ server * memory usage * monitor * role - * save * shutdown * slaveof * slowlog diff --git a/test_fakeredis.py b/test_fakeredis.py index 6d0d847..71548d7 100644 --- a/test_fakeredis.py +++ b/test_fakeredis.py @@ -2882,7 +2882,7 @@ def test_lastsave(self): @attr('slow') def test_bgsave_timestamp_update(self): early_timestamp = self.redis.lastsave() - sleep(1) + sleep(2) self.assertTrue(self.redis.bgsave()) late_timestamp = self.redis.lastsave() self.assertLess(early_timestamp, late_timestamp) @@ -2890,7 +2890,7 @@ def test_bgsave_timestamp_update(self): @attr('slow') def test_save_timestamp_update(self): early_timestamp = self.redis.lastsave() - sleep(1) + sleep(2) self.assertTrue(self.redis.save()) late_timestamp = self.redis.lastsave() self.assertLess(early_timestamp, late_timestamp)