mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 02:49:27 +01:00
Let's sleep just a smidge longer to ensure our time difference is >= 1
This commit is contained in:
parent
3986f24dad
commit
3b30b7b4e4
@ -586,7 +586,7 @@ class TestTimeoutQueue(SupyTestCase):
|
||||
q.enqueue(3)
|
||||
self.assertEqual(len(q), 3)
|
||||
self.assertEqual(sum(q), 6)
|
||||
time.sleep(1)
|
||||
time.sleep(1.1)
|
||||
self.assertEqual(len(q), 0)
|
||||
self.assertEqual(sum(q), 0)
|
||||
|
||||
@ -599,7 +599,7 @@ class TestTimeoutQueue(SupyTestCase):
|
||||
q.enqueue(3)
|
||||
self.assertEqual(len(q), 3)
|
||||
self.assertEqual(sum(q), 6)
|
||||
time.sleep(1)
|
||||
time.sleep(1.1)
|
||||
self.assertEqual(len(q), 0)
|
||||
self.assertEqual(sum(q), 0)
|
||||
|
||||
@ -608,9 +608,9 @@ class TestTimeoutQueue(SupyTestCase):
|
||||
q.enqueue(1)
|
||||
self.failUnless(1 in q)
|
||||
self.failIf(2 in q)
|
||||
time.sleep(1)
|
||||
time.sleep(1.1)
|
||||
self.failIf(1 in q)
|
||||
|
||||
|
||||
|
||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user