summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test-Http.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-Http.cc b/tests/test-Http.cc
index d4848e7..c7ecfee 100644
--- a/tests/test-Http.cc
+++ b/tests/test-Http.cc
@@ -122,6 +122,8 @@ void MainTask::Do() {
Events::Async event;
bool stop = false;
+ waitFor(&event);
+
HttpServer * s = new HttpServer();
s->registerAction(new TestAction());
s->registerAction(new TestFailure());
@@ -134,8 +136,6 @@ void MainTask::Do() {
waitFor(&timeout);
yield();
- waitFor(&event);
-
Events::TaskEvent stopperEvent;
Task * stopper = TaskMan::registerTask(new Stopper, &stopperEvent);
waitFor(&stopperEvent);