summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2012-04-06 11:52:48 -0700
committerPixel <pixel@nobis-crew.org>2012-04-06 11:52:48 -0700
commit837ded8434ebe7048907008723929ecee2c9f83a (patch)
treecc058517f64a469f231977b4142168400ec5e452
parentf2cfa1707c713c7bb01d16f4c2c4d96803ea6793 (diff)
Better way to write these...
-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();