aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-02-06 09:40:19 -0800
committerTed Gould <ted@gould.cx>2010-02-06 09:40:19 -0800
commit74c665741d480ab79105345ef9c700ddbf70804f (patch)
tree670402e0bb08c1422aab59bc34688fd60c226f31 /tests
parentd004765bf7b546978e708f7ca43efc80e33f0d19 (diff)
downloadlibayatana-appindicator-74c665741d480ab79105345ef9c700ddbf70804f.tar.gz
libayatana-appindicator-74c665741d480ab79105345ef9c700ddbf70804f.tar.bz2
libayatana-appindicator-74c665741d480ab79105345ef9c700ddbf70804f.zip
Lengthening the time a little bit to make sure we don't miss messages.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-libappindicator-status-client.c3
-rw-r--r--tests/test-libappindicator-status-server.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/test-libappindicator-status-client.c b/tests/test-libappindicator-status-client.c
index e016c81..2e02b8e 100644
--- a/tests/test-libappindicator-status-client.c
+++ b/tests/test-libappindicator-status-client.c
@@ -83,6 +83,7 @@ kill_func (gpointer userdata)
if (watchdog_hit == FALSE) {
g_main_loop_quit(mainloop);
g_warning("Forced to Kill");
+ g_warning("Toggle count: %d", toggle_count);
passed = FALSE;
return FALSE;
}
@@ -106,7 +107,7 @@ main (gint argc, gchar * argv[])
dbus_bus_add_match(dbus_g_connection_get_connection(session_bus), "type='signal',interface='" NOTIFICATION_ITEM_DBUS_IFACE "',member='NewStatus'", NULL);
watchdog_hit = TRUE;
- g_timeout_add(100, kill_func, NULL);
+ g_timeout_add(250, kill_func, NULL);
mainloop = g_main_loop_new(NULL, FALSE);
g_main_loop_run(mainloop);
diff --git a/tests/test-libappindicator-status-server.c b/tests/test-libappindicator-status-server.c
index f2984cd..75b430e 100644
--- a/tests/test-libappindicator-status-server.c
+++ b/tests/test-libappindicator-status-server.c
@@ -61,7 +61,7 @@ main (gint argc, gchar * argv[])
AppIndicator * ci = app_indicator_new ("my-id", "my-icon-name", APP_INDICATOR_CATEGORY_APPLICATION_STATUS);
app_indicator_set_attention_icon (ci, "my-attention-icon");
- g_idle_add(toggle, ci);
+ g_timeout_add(50, toggle, ci);
mainloop = g_main_loop_new(NULL, FALSE);
g_main_loop_run(mainloop);