Skip to content

Commit

Permalink
TestRealStricRedis version of bgsave test are failing. Might not be w…
Browse files Browse the repository at this point in the history
…aiting long enough for the background process to finish.
  • Loading branch information
dwilliams-kenzan committed Oct 16, 2018
1 parent f9deeb0 commit ec92d60
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test_fakeredis.py
Original file line number Diff line number Diff line change
Expand Up @@ -2882,15 +2882,16 @@ def test_lastsave(self):
@attr('slow')
def test_bgsave_timestamp_update(self):
early_timestamp = self.redis.lastsave()
sleep(2)
sleep(1)
self.assertTrue(self.redis.bgsave())
sleep(1)
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(2)
sleep(1)
self.assertTrue(self.redis.save())
late_timestamp = self.redis.lastsave()
self.assertLess(early_timestamp, late_timestamp)
Expand Down

0 comments on commit ec92d60

Please sign in to comment.