aboutsummaryrefslogtreecommitdiff
path: root/tests/media-player-user.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/media-player-user.cc')
-rw-r--r--tests/media-player-user.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/media-player-user.cc b/tests/media-player-user.cc
index 32c1181..9214961 100644
--- a/tests/media-player-user.cc
+++ b/tests/media-player-user.cc
@@ -40,13 +40,11 @@ class MediaPlayerUserTest : public ::testing::Test
virtual void SetUp() {
service = dbus_test_service_new(NULL);
-
+ dbus_test_service_set_bus(service, DBUS_TEST_SERVICE_BUS_BOTH);
dbus_test_service_add_task(service, (DbusTestTask*)service_mock);
dbus_test_service_start_tasks(service);
- g_setenv("DBUS_SYSTEM_BUS_ADDRESS", g_getenv("DBUS_SESSION_BUS_ADDRESS"), TRUE);
-
session = g_bus_get_sync(G_BUS_TYPE_SESSION, NULL, NULL);
ASSERT_NE(nullptr, session);
g_dbus_connection_set_exit_on_close(session, FALSE);