diff options
Diffstat (limited to 'src/lib/config')
-rw-r--r-- | src/lib/config/tests/cmd_http_listener_unittests.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/config/tests/cmd_http_listener_unittests.cc b/src/lib/config/tests/cmd_http_listener_unittests.cc index 55b2fbf25c..4eca580ff6 100644 --- a/src/lib/config/tests/cmd_http_listener_unittests.cc +++ b/src/lib/config/tests/cmd_http_listener_unittests.cc @@ -241,10 +241,6 @@ public: const ConstElementPtr& /*command_arguments*/) { ElementPtr arguments = Element::createList(); arguments->add(Element::create("bar")); - EXPECT_THROW(listener_->start(), InvalidOperation); - EXPECT_THROW(listener_->pause(), MultiThreadingInvalidOperation); - EXPECT_THROW(listener_->resume(), MultiThreadingInvalidOperation); - EXPECT_THROW(listener_->stop(), MultiThreadingInvalidOperation); return (createAnswer(CONTROL_RESULT_SUCCESS, arguments)); } @@ -311,6 +307,11 @@ public: } } + EXPECT_THROW(listener_->start(), InvalidOperation); + EXPECT_THROW(listener_->pause(), MultiThreadingInvalidOperation); + EXPECT_THROW(listener_->resume(), MultiThreadingInvalidOperation); + EXPECT_THROW(listener_->stop(), MultiThreadingInvalidOperation); + // We're done, ship it! return (createAnswer(CONTROL_RESULT_SUCCESS, arguments)); } |