tests: raise the mock service startup timeout
authorLubomir Rintel <lkundrak@v3.sk>
Mon, 17 Aug 2015 08:51:52 +0000 (10:51 +0200)
committerLubomir Rintel <lkundrak@v3.sk>
Mon, 17 Aug 2015 08:53:11 +0000 (10:53 +0200)
Python is just too slow on some machines. Needed around twice the previous
limit on BCM2835 with Pidora 20, let's add some safety margin too.

libnm-glib/tests/common.c
libnm/tests/common.c

index f68c4b1..9e3b002 100644 (file)
@@ -75,7 +75,7 @@ nm_test_service_init (void)
        g_assert_no_error (error);
 
        /* Wait until the service is registered on the bus */
-       for (i = 100; i > 0; i--) {
+       for (i = 1000; i > 0; i--) {
                if (name_exists (info->bus, "org.freedesktop.NetworkManager"))
                        break;
                g_usleep (G_USEC_PER_SEC / 50);
index 877488e..f2cdc59 100644 (file)
@@ -75,7 +75,7 @@ nm_test_service_init (void)
        g_assert_no_error (error);
 
        /* Wait until the service is registered on the bus */
-       for (i = 100; i > 0; i--) {
+       for (i = 1000; i > 0; i--) {
                if (name_exists (info->bus, "org.freedesktop.NetworkManager"))
                        break;
                g_usleep (G_USEC_PER_SEC / 50);