summaryrefslogtreecommitdiffstats
path: root/messagebus_test/src/tests/error
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@oath.com>2018-10-04 22:05:19 +0200
committerHenning Baldersheim <balder@oath.com>2018-10-04 22:05:19 +0200
commit0bdd3c5fa4326ed4106b9aee0585d57c7193bd97 (patch)
tree2b519cf259eb30ab28d85fc560a589457f54ed17 /messagebus_test/src/tests/error
parent3f2b1a9230fbab12f2e8b5afcf1e0ad72f3d872a (diff)
Remove the costly and unnecessary setSlobrokId interface.
Diffstat (limited to 'messagebus_test/src/tests/error')
-rw-r--r--messagebus_test/src/tests/error/cpp-client.cpp7
-rw-r--r--messagebus_test/src/tests/error/cpp-server.cpp7
2 files changed, 6 insertions, 8 deletions
diff --git a/messagebus_test/src/tests/error/cpp-client.cpp b/messagebus_test/src/tests/error/cpp-client.cpp
index 44580400e26..2a3376336ea 100644
--- a/messagebus_test/src/tests/error/cpp-client.cpp
+++ b/messagebus_test/src/tests/error/cpp-client.cpp
@@ -20,10 +20,9 @@ public:
int
App::Main()
{
- RPCMessageBus mb(ProtocolSet().add(IProtocol::SP(new SimpleProtocol())),
- RPCNetworkParams()
- .setIdentity(Identity("server/cpp"))
- .setSlobrokConfig("file:slobrok.cfg"),
+ RPCMessageBus mb(ProtocolSet().add(std::make_shared<SimpleProtocol>()),
+ RPCNetworkParams("file:slobrok.cfg")
+ .setIdentity(Identity("server/cpp")),
"file:routing.cfg");
Receptor src;
diff --git a/messagebus_test/src/tests/error/cpp-server.cpp b/messagebus_test/src/tests/error/cpp-server.cpp
index af0d6e30132..d5200ed20c1 100644
--- a/messagebus_test/src/tests/error/cpp-server.cpp
+++ b/messagebus_test/src/tests/error/cpp-server.cpp
@@ -49,10 +49,9 @@ public:
int
App::Main()
{
- RPCMessageBus mb(ProtocolSet().add(IProtocol::SP(new SimpleProtocol())),
- RPCNetworkParams()
- .setIdentity(Identity("server/cpp"))
- .setSlobrokConfig("file:slobrok.cfg"),
+ RPCMessageBus mb(ProtocolSet().add(std::make_shared<SimpleProtocol>()),
+ RPCNetworkParams("file:slobrok.cfg")
+ .setIdentity(Identity("server/cpp")),
"file:routing.cfg");
Server server(mb.getMessageBus());
while (true) {