]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Bump the timeouts in the dispatch_test
authorOndřej Surý <ondrej@isc.org>
Fri, 27 Oct 2023 09:44:02 +0000 (11:44 +0200)
committerOndřej Surý <ondrej@isc.org>
Fri, 27 Oct 2023 10:55:51 +0000 (12:55 +0200)
The client connection timeout was set to just one second, which might
not be enough on busy systems (and the CI machines are oh-boy-busy).
Bump the server timeouts to 10 seconds and client timeouts to 5 seconds,
this will make the unit test run a little bit longer, but it should be
more reliable.

tests/dns/dispatch_test.c

index cb1f023d35d06bb5df31acb666d87f2d6a19849e..470c167286989c567052975cf41193ace29f2b31 100644 (file)
 #include <tests/dns.h>
 
 /* Timeouts in miliseconds */
-#define T_SERVER_INIT      5000
-#define T_SERVER_IDLE      5000
-#define T_SERVER_KEEPALIVE  5000
-#define T_SERVER_ADVERTISED 5000
+#define T_SERVER_INIT      10000
+#define T_SERVER_IDLE      10000
+#define T_SERVER_KEEPALIVE  10000
+#define T_SERVER_ADVERTISED 10000
 
-#define T_CLIENT_INIT      2000
-#define T_CLIENT_IDLE      2000
-#define T_CLIENT_KEEPALIVE  2000
-#define T_CLIENT_ADVERTISED 2000
+#define T_CLIENT_INIT      10000
+#define T_CLIENT_IDLE      10000
+#define T_CLIENT_KEEPALIVE  10000
+#define T_CLIENT_ADVERTISED 10000
 
-#define T_CLIENT_CONNECT 1000
+#define T_CLIENT_CONNECT 10000
 
 /* dns_dispatchset_t *dset = NULL; */
 static isc_sockaddr_t udp_server_addr;