mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +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)
|
q.enqueue(3)
|
||||||
self.assertEqual(len(q), 3)
|
self.assertEqual(len(q), 3)
|
||||||
self.assertEqual(sum(q), 6)
|
self.assertEqual(sum(q), 6)
|
||||||
time.sleep(1)
|
time.sleep(1.1)
|
||||||
self.assertEqual(len(q), 0)
|
self.assertEqual(len(q), 0)
|
||||||
self.assertEqual(sum(q), 0)
|
self.assertEqual(sum(q), 0)
|
||||||
|
|
||||||
@ -599,7 +599,7 @@ class TestTimeoutQueue(SupyTestCase):
|
|||||||
q.enqueue(3)
|
q.enqueue(3)
|
||||||
self.assertEqual(len(q), 3)
|
self.assertEqual(len(q), 3)
|
||||||
self.assertEqual(sum(q), 6)
|
self.assertEqual(sum(q), 6)
|
||||||
time.sleep(1)
|
time.sleep(1.1)
|
||||||
self.assertEqual(len(q), 0)
|
self.assertEqual(len(q), 0)
|
||||||
self.assertEqual(sum(q), 0)
|
self.assertEqual(sum(q), 0)
|
||||||
|
|
||||||
@ -608,7 +608,7 @@ class TestTimeoutQueue(SupyTestCase):
|
|||||||
q.enqueue(1)
|
q.enqueue(1)
|
||||||
self.failUnless(1 in q)
|
self.failUnless(1 in q)
|
||||||
self.failIf(2 in q)
|
self.failIf(2 in q)
|
||||||
time.sleep(1)
|
time.sleep(1.1)
|
||||||
self.failIf(1 in q)
|
self.failIf(1 in q)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user