Skip to content

Commit

Permalink
Removing implemented commands from readme, and extending the sleep to…
Browse files Browse the repository at this point in the history
… make sure time stamps are different.
  • Loading branch information
dwilliams-kenzan committed Oct 16, 2018
1 parent 8d69fa9 commit f9deeb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ server
------

* bgrewriteaof
* bgsave
* client kill
* client list
* client getname
Expand All @@ -135,7 +134,6 @@ server
* debug object
* debug segfault
* info
* lastsave
* memory doctor
* memory help
* memory malloc-stats
Expand All @@ -144,7 +142,6 @@ server
* memory usage
* monitor
* role
* save
* shutdown
* slaveof
* slowlog
Expand Down
4 changes: 2 additions & 2 deletions test_fakeredis.py
Original file line number Diff line number Diff line change
Expand Up @@ -2882,15 +2882,15 @@ 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)

@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)
Expand Down

0 comments on commit f9deeb0

Please sign in to comment.