From 0c8526d6686623f1d77231dd43a61775e3b6aadf Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 28 Jun 2013 23:00:27 -0500 Subject: in test-users, fix timing issue in the fixture's SetUp --- tests/backend-dbus/test-users.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/backend-dbus/test-users.cc b/tests/backend-dbus/test-users.cc index b022984..dccacbb 100644 --- a/tests/backend-dbus/test-users.cc +++ b/tests/backend-dbus/test-users.cc @@ -48,7 +48,10 @@ class Users: public GTestMockDBusFixture users = 0; backend_get (cancellable, NULL, &users, NULL); g_assert (users != 0); - wait_msec (100); + + // wait for the users added by GTestMockDBusFixture::SetUp() to show up + wait_for_signals (users, INDICATOR_SESSION_USERS_SIGNAL_USER_ADDED, 12); + init_event_keys (0); } virtual void TearDown () -- cgit v1.2.3