Bump max time in test_method_calls_on_proxy() test

On slower platforms, the overhead of the 240 D-BUS Sleep calls is larger than
the current maximum of 6 seconds. A run on a Panda board sometimes fails with

  ERROR:/build/buildd/glib2.0-2.33.8/./gio/tests/gdbus-threading.c:409:test_method_calls_on_proxy:
  assertion failed (elapsed_msec < 6000): (7365 < 6000)

Bump maximum time to 8 seconds to be more resilient to this.

https://bugzilla.gnome.org/show_bug.cgi?id=682222
This commit is contained in:
Martin Pitt 2012-08-20 06:02:31 +02:00
parent 8297e8a3a0
commit 55f7061097

View File

@ -406,7 +406,7 @@ test_method_calls_on_proxy (GDBusProxy *proxy)
/* elapsed_msec should be 4000 msec +/- change for overhead/inaccuracy */
g_assert_cmpint (elapsed_msec, >=, 3950);
g_assert_cmpint (elapsed_msec, <, 6000);
g_assert_cmpint (elapsed_msec, <, 8000);
g_print (" ");
}