[glib-networking] tests: bump server-side delay in timeout test
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking] tests: bump server-side delay in timeout test
- Date: Thu, 3 Jun 2021 18:49:25 +0000 (UTC)
commit 57d288cc56c8c6da70e6d5b5ace1336510ef972b
Author: Ole André Vadla Ravnås <oleavr gmail com>
Date: Mon May 31 00:54:40 2021 +0200
tests: bump server-side delay in timeout test
To add a bit of safety margin in case the system running the test-suite
is under heavy load, which may result in the main thread completing a
slightly larger chunk of the sleep before the worker thread gets around
to attempting I/O. This means the worker may end up succeeding instead
of timing out.
tls/tests/connection.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tls/tests/connection.c b/tls/tests/connection.c
index 00ac7fd..475285d 100644
--- a/tls/tests/connection.c
+++ b/tls/tests/connection.c
@@ -2525,7 +2525,7 @@ test_socket_timeout (TestConnection *test,
GSocketClient *client;
GError *error = NULL;
- test->incoming_connection_delay = (gulong)(1.1 * G_USEC_PER_SEC);
+ test->incoming_connection_delay = (gulong)(1.5 * G_USEC_PER_SEC);
start_async_server_service (test, G_TLS_AUTHENTICATION_NONE, WRITE_THEN_CLOSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]