aboutsummaryrefslogtreecommitdiff
path: root/tests/test-libappindicator-fallback-watcher.c
diff options
context:
space:
mode:
authorMathieu Trudel-Lapierre <mathieu-tl@ubuntu.com>2013-01-16 14:53:32 -0500
committerMathieu Trudel-Lapierre <mathieu-tl@ubuntu.com>2013-01-16 14:53:32 -0500
commit8958959e98d58d04b4c82c0d79eb5c24a60d1c19 (patch)
tree5176786d2c85406e748d7ac44e9c119888978eac /tests/test-libappindicator-fallback-watcher.c
parentb598e7cb3fc5491d93debde743f5e67037dfb6f1 (diff)
parentc5aca6545eac6999a9c0a74ede4674366d712941 (diff)
downloadlibayatana-appindicator-8958959e98d58d04b4c82c0d79eb5c24a60d1c19.tar.gz
libayatana-appindicator-8958959e98d58d04b4c82c0d79eb5c24a60d1c19.tar.bz2
libayatana-appindicator-8958959e98d58d04b4c82c0d79eb5c24a60d1c19.zip
Adjust timeouts and log handlers to not fail tests unnecessarily.
Diffstat (limited to 'tests/test-libappindicator-fallback-watcher.c')
-rw-r--r--tests/test-libappindicator-fallback-watcher.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test-libappindicator-fallback-watcher.c b/tests/test-libappindicator-fallback-watcher.c
index 5494082..f337150 100644
--- a/tests/test-libappindicator-fallback-watcher.c
+++ b/tests/test-libappindicator-fallback-watcher.c
@@ -77,6 +77,7 @@ main (int argv, char ** argc)
while (!has_owner && owner_count < 10000) {
org_freedesktop_DBus_name_has_owner(bus_proxy, "org.test", &has_owner, NULL);
owner_count++;
+ g_usleep(500000);
}
if (owner_count == 10000) {
@@ -104,7 +105,7 @@ main (int argv, char ** argc)
/* This is the final kill function. It really shouldn't happen
unless we get an error. */
- g_timeout_add(2000, kill_func, NULL);
+ g_timeout_add_seconds(20, kill_func, NULL);
g_debug("Entering Mainloop");