about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2018-07-05 03:58:22 +0200
committerMichael Biebl <biebl@debian.org>2018-07-05 03:58:32 +0200
commit29cb93fe7537e2b0b7ed334828cf336fec475d56 (patch)
treedc3d20cf07d104c3cea81ed7c51af121f0110a66
parent587020debedcfd3776f6e96c0c0b0b79bcc0ff1f (diff)
Increase timeout in test-nm-client to 30s
On slow architectures it can take longer then 3s for the test service to
start up.
-rw-r--r--debian/patches/Increase-timeout-in-test-nm-client-to-30s.patch23
-rw-r--r--debian/patches/series1
2 files changed, 24 insertions, 0 deletions
diff --git a/debian/patches/Increase-timeout-in-test-nm-client-to-30s.patch b/debian/patches/Increase-timeout-in-test-nm-client-to-30s.patch
new file mode 100644
index 00000000..5c6d99f4
--- /dev/null
+++ b/debian/patches/Increase-timeout-in-test-nm-client-to-30s.patch
@@ -0,0 +1,23 @@
+From: Michael Biebl <biebl@debian.org>
+Date: Thu, 5 Jul 2018 03:53:35 +0200
+Subject: Increase timeout in test-nm-client to 30s
+
+On slow architectures it can take longer then 3s for the test service to
+start up.
+---
+ shared/nm-test-utils-impl.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/shared/nm-test-utils-impl.c b/shared/nm-test-utils-impl.c
+index 3add88c..9e7312c 100644
+--- a/shared/nm-test-utils-impl.c
++++ b/shared/nm-test-utils-impl.c
+@@ -164,7 +164,7 @@ nmtstc_service_init (void)
+ 		g_source_set_callback (child_source, (GSourceFunc)(void (*) (void)) _service_init_wait_child_wait, &data, NULL);
+ 		g_source_attach (child_source, context);
+ 
+-		had_timeout = !nmtst_main_loop_run (data.mainloop, 3000);
++		had_timeout = !nmtst_main_loop_run (data.mainloop, 30000);
+ 
+ 		g_source_destroy (timeout_source);
+ 		g_source_destroy (child_source);
diff --git a/debian/patches/series b/debian/patches/series
index 0adf0cf1..9f28a9f4 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ Force-online-state-with-unmanaged-devices.patch
 Don-t-setup-Sleep-Monitor-if-not-booted-with-systemd.patch
 Don-t-make-NetworkManager-D-Bus-activatable.patch
 Fix-iscsiadm-path.patch
+Increase-timeout-in-test-nm-client-to-30s.patch