summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test-Http.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test-Http.cc b/tests/test-Http.cc
index f54fba0..c387168 100644
--- a/tests/test-Http.cc
+++ b/tests/test-Http.cc
@@ -106,9 +106,9 @@ void MainTask::Do() {
bool stop = false;
HttpServer * s = new HttpServer();
- (new TestAction())->registerMe(s);
- (new TestFailure())->registerMe(s);
- (new StopAction(event, stop))->registerMe(s);
+ s->registerAction(new TestAction());
+ s->registerAction(new TestFailure());
+ s->registerAction(new StopAction(event, stop));
s->setPort(8080);
s->setLocal("localhost");
s->start();