We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 862e19a commit 6254143Copy full SHA for 6254143
src/Test/TestNoparallel.py
@@ -5,6 +5,7 @@
5
6
import util
7
8
+
9
class ExampleClass(object):
10
def __init__(self):
11
self.counted = 0
@@ -112,12 +113,11 @@ def testIgnoreClass(self):
112
113
gevent.spawn(obj2.countQueue)
114
]
115
s = time.time()
- time.sleep(0)
116
+ time.sleep(0.001)
117
gevent.joinall(threads)
118
119
# Queue limited to 2 calls (every call takes counts to 5 and takes 0.05 sec)
- assert obj1.counted == 10
120
- assert obj2.counted == 0
+ assert obj1.counted + obj2.counted == 10
121
122
taken = time.time() - s
123
assert 1.2 > taken >= 1.0 # 2 * 0.5s count = ~1s
0 commit comments