summaryrefslogtreecommitdiff
path: root/src/test/DBusConnectionTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/DBusConnectionTest.cpp')
-rw-r--r--src/test/DBusConnectionTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/DBusConnectionTest.cpp b/src/test/DBusConnectionTest.cpp
index bb2e60b..8651535 100644
--- a/src/test/DBusConnectionTest.cpp
+++ b/src/test/DBusConnectionTest.cpp
@@ -30,7 +30,7 @@ class DBusConnectionTest: public ::testing::Test {
protected:
virtual void SetUp() {
- dbusConnection_ = CommonAPI::DBus::DBusConnection::getBus(CommonAPI::DBus::DBusType_t::SESSION);
+ dbusConnection_ = CommonAPI::DBus::DBusConnection::getBus(CommonAPI::DBus::DBusType_t::SESSION, "connection1");
}
virtual void TearDown() {
@@ -98,7 +98,7 @@ TEST_F(DBusConnectionTest, SendingAsyncDBusMessagesWorks) {
const char interfaceName[] = "commonapi.dbus.test.TestInterface";
const char methodName[] = "TestMethod";
- auto interfaceHandlerDBusConnection = CommonAPI::DBus::DBusConnection::getBus(CommonAPI::DBus::DBusType_t::SESSION);
+ auto interfaceHandlerDBusConnection = CommonAPI::DBus::DBusConnection::getBus(CommonAPI::DBus::DBusType_t::SESSION, "connection2");
ASSERT_TRUE(interfaceHandlerDBusConnection->connect());
ASSERT_TRUE(interfaceHandlerDBusConnection->requestServiceNameAndBlock(service));