test: extend timeout for DHCP/NDisc tests
Fixes https://github.com/systemd/systemd/pull/32932#issuecomment-2120424121.
This commit is contained in:
committed by
Luca Boccassi
parent
125cca1b51
commit
f8ef1df3d1
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user