diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-Http.cc | 3 |
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); |