From daf6897fe24e62ae8cf8e42b151ed565563332fe Mon Sep 17 00:00:00 2001 From: Nicolas Noble Date: Fri, 8 Aug 2014 13:34:23 -0700 Subject: Finalizing cares integration. --- tests/test-Http.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') 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); -- cgit v1.2.3