aboutsummaryrefslogtreecommitdiff
path: root/tests/backend-dbus/test-users.cc
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-06-28 23:00:27 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-06-28 23:00:27 -0500
commit0c8526d6686623f1d77231dd43a61775e3b6aadf (patch)
tree8a9a96b4650011a242e0509a4208e7f23bc5034e /tests/backend-dbus/test-users.cc
parent3222a77d7159826d89743685d35710597f269e00 (diff)
downloadayatana-indicator-session-0c8526d6686623f1d77231dd43a61775e3b6aadf.tar.gz
ayatana-indicator-session-0c8526d6686623f1d77231dd43a61775e3b6aadf.tar.bz2
ayatana-indicator-session-0c8526d6686623f1d77231dd43a61775e3b6aadf.zip
in test-users, fix timing issue in the fixture's SetUp
Diffstat (limited to 'tests/backend-dbus/test-users.cc')
-rw-r--r--tests/backend-dbus/test-users.cc5
1 files changed, 4 insertions, 1 deletions
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 ()