From 3b30b7b4e4b528def3e9973539aeb627a0b9f631 Mon Sep 17 00:00:00 2001 From: James Vega Date: Thu, 9 Sep 2004 14:59:30 +0000 Subject: [PATCH] Let's sleep just a smidge longer to ensure our time difference is >= 1 --- test/test_structures.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test_structures.py b/test/test_structures.py index 8ac36609c..24a1f1feb 100644 --- a/test/test_structures.py +++ b/test/test_structures.py @@ -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: