adds short delay in test

On some platforms the cluster is not always ready in time for test assertion
This commit is contained in:
Ilan
2015-07-23 14:57:00 +02:00
parent 6ca899cdfc
commit f8c9ef1bfa

View File

@@ -1,6 +1,7 @@
import sys
from multiprocessing import Queue, Event, Value
import threading
from time import sleep
import os
import pytest
@@ -52,6 +53,7 @@ def test_cluster_initial(r):
assert c.is_running
assert c.is_stopping is False
assert c.is_starting is False
sleep(0.5)
stat = c.stat
assert stat.status == Conf.IDLE
assert c.stop() is True