|
24 | 24 | #include <zephyr/logging/log.h> |
25 | 25 |
|
26 | 26 | /* Time to wait for NET_MGMT events to finish firing */ |
27 | | -#define EVENT_WAIT_TIME_SHORT K_MSEC(10) |
28 | | -#define EVENT_WAIT_TIME K_MSEC(200) |
| 27 | +#define EVENT_WAIT_TIME_SHORT K_MSEC(10) |
| 28 | +#define EVENT_WAIT_TIME_MEDIUM K_MSEC(100) |
| 29 | +#define EVENT_WAIT_TIME K_MSEC(200) |
29 | 30 |
|
30 | 31 |
|
31 | 32 | /* Time to wait for IPv6 DAD-gated events to finish. |
@@ -622,7 +623,7 @@ static void cycle_iface_states(struct net_if *iface, enum ip_order ifa_ipm) |
622 | 623 | zassert_equal(net_if_up(iface), 0, "net_if_up should succeed."); |
623 | 624 |
|
624 | 625 | /* Verify that no events have been fired yet */ |
625 | | - k_sleep(EVENT_WAIT_TIME_SHORT); |
| 626 | + k_sleep(EVENT_WAIT_TIME_MEDIUM); |
626 | 627 | stats = get_reset_stats(); |
627 | 628 | zassert_equal(stats.event_count_gen, 0, |
628 | 629 | "No events should be fired if connectivity availability did not change."); |
@@ -653,7 +654,6 @@ static void cycle_iface_states(struct net_if *iface, enum ip_order ifa_ipm) |
653 | 654 | zassert_equal(stats.conn_iface_gen, iface, "The test iface should be blamed."); |
654 | 655 | zassert_equal(stats.conn_iface_ipv4, iface, "The test iface should be blamed."); |
655 | 656 |
|
656 | | - |
657 | 657 | /* Add IPv6 */ |
658 | 658 | net_if_ipv6_addr_add(iface, &test_ipv6_a, NET_ADDR_MANUAL, 0); |
659 | 659 |
|
|
0 commit comments