diff --git a/test_fakeredis.py b/test_fakeredis.py index 71548d7..1a08c19 100644 --- a/test_fakeredis.py +++ b/test_fakeredis.py @@ -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)