Commit 4a892648 authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Avoid false alarm when testing kamaki threads

The false alarm in caused when testing kamaki threads that run too
fast to catch them in an unfinished state. The "assert thread as
unfinished" check fails in that case, although nothing is wrong
with the functionality.
parent 8f9a5615
......@@ -236,10 +236,10 @@ class SilentEvent(TestCase):
t.start()
for i in range(4):
self.assertTrue(threads[i].is_alive())
if threads[i].is_alive():
threads[i].join()
self.assertFalse(threads[i].is_alive())
self.can_finish = i
threads[i].join()
self.assertFalse(threads[i].is_alive())
def test_value(self):
threads = [self.SE(self.thread_content, i) for i in range(4)]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment