Let's sleep just a smidge longer to ensure our time difference is >= 1

This commit is contained in:
James Vega 2004-09-09 14:59:30 +00:00
parent 3986f24dad
commit 3b30b7b4e4

View File

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