]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: extend timeout for DHCP/NDisc tests
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 20 May 2024 16:44:42 +0000 (01:44 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 20 May 2024 20:55:07 +0000 (22:55 +0200)
Fixes https://github.com/systemd/systemd/pull/32932#issuecomment-2120424121.

src/libsystemd-network/test-dhcp-client.c
src/libsystemd-network/test-dhcp6-client.c
src/libsystemd-network/test-ndisc-ra.c

index 2c489605a8d9c509c294e63160454e994f61cb6b..5b4ce3e0bf0c2b73fd1002ad8abcb331c344f1ee 100644 (file)
@@ -514,7 +514,7 @@ static void test_addr_acq(sd_event *e) {
         callback_recv = test_addr_acq_recv_discover;
 
         assert_se(sd_event_add_time_relative(e, NULL, CLOCK_BOOTTIME,
-                                             2 * USEC_PER_SEC, 0,
+                                             30 * USEC_PER_SEC, 0,
                                              NULL, INT_TO_PTR(-ETIMEDOUT)) >= 0);
 
         res = sd_dhcp_client_start(client);
index 37d5a0cf6c739bc62d8eb8ceb807eaf796a2016b..7afd464dc0ff6ee0e92232e695bf5e2aabb350c1 100644 (file)
@@ -1086,7 +1086,7 @@ TEST(dhcp6_client) {
 
         assert_se(sd_event_new(&e) >= 0);
         assert_se(sd_event_add_time_relative(e, NULL, CLOCK_BOOTTIME,
-                                             2 * USEC_PER_SEC, 0,
+                                             30 * USEC_PER_SEC, 0,
                                              NULL, INT_TO_PTR(-ETIMEDOUT)) >= 0);
 
         assert_se(sd_dhcp6_client_new(&client) >= 0);
index 14c9164585454a4589ef64d835f8594a4ece59b6..b2ea8f57b31e59009455da83a64d4dfce4206dc7 100644 (file)
@@ -380,7 +380,7 @@ TEST(ra) {
         assert_se(sd_event_source_set_io_fd_own(recv_router_advertisement, true) >= 0);
 
         assert_se(sd_event_add_time_relative(e, NULL, CLOCK_BOOTTIME,
-                                             2 * USEC_PER_SEC, 0,
+                                             30 * USEC_PER_SEC, 0,
                                              NULL, INT_TO_PTR(-ETIMEDOUT)) >= 0);
 
         assert_se(sd_radv_start(ra) >= 0);