summaryrefslogtreecommitdiff
path: root/tests/test-Http.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-Http.cc')
-rw-r--r--tests/test-Http.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test-Http.cc b/tests/test-Http.cc
index 1ea040b..0dfcc74 100644
--- a/tests/test-Http.cc
+++ b/tests/test-Http.cc
@@ -137,7 +137,8 @@ void MainTask::Do() {
s->setLocal("localhost");
s->start();
- sleep(1);
+ while (!s->started())
+ sleep(0.1);
Events::TaskEvent stopperEvent;
Task * stopper = TaskMan::registerTask(new Stopper, &stopperEvent);