summaryrefslogtreecommitdiffstats
path: root/messagebus/src/tests/shutdown/shutdown.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'messagebus/src/tests/shutdown/shutdown.cpp')
-rw-r--r--messagebus/src/tests/shutdown/shutdown.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/messagebus/src/tests/shutdown/shutdown.cpp b/messagebus/src/tests/shutdown/shutdown.cpp
index 46a8a6518f0..1706da3b55f 100644
--- a/messagebus/src/tests/shutdown/shutdown.cpp
+++ b/messagebus/src/tests/shutdown/shutdown.cpp
@@ -37,21 +37,18 @@ TEST_APPHOOK(Test);
void
Test::requireThatListenFailedIsExceptionSafe()
{
- FRT_Supervisor orb;
- ASSERT_TRUE(orb.Listen(0));
- ASSERT_TRUE(orb.Start());
+ fnet::frt::StandaloneFRT orb;
+ ASSERT_TRUE(orb.supervisor().Listen(0));
Slobrok slobrok;
try {
TestServer bar(MessageBusParams(),
RPCNetworkParams(slobrok.config())
- .setListenPort(orb.GetListenPort()));
+ .setListenPort(orb.supervisor().GetListenPort()));
EXPECT_TRUE(false);
} catch (vespalib::Exception &e) {
- EXPECT_EQUAL("Failed to start network.",
- e.getMessage());
+ EXPECT_EQUAL("Failed to start network.", e.getMessage());
}
- orb.ShutDown(true);
}
void