From 9509a74f517040e0603e7fb4a950dfbf9b727a4e Mon Sep 17 00:00:00 2001 From: Pixel Date: Fri, 6 Apr 2012 13:54:21 -0700 Subject: Probably better to move this before even creating the action that might trigger it. --- tests/test-Http.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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); -- cgit v1.2.3