Skip to content

Commit

Permalink
test: extend timeout for DHCP/NDisc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yuwata authored and bluca committed May 20, 2024
1 parent 125cca1 commit f8ef1df
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/libsystemd-network/test-dhcp-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/libsystemd-network/test-dhcp6-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/libsystemd-network/test-ndisc-ra.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f8ef1df

Please sign in to comment.