zephyr/tests/net/socket
Sjors Hettinga cf3466ff74 tests: net: socket: tcp: Make test_open_close_immediately more robust
The close function on a TCP socket can return before the complete
socket has been closed, as there might be packets still in flight.
Modify the test to wait briefly (less then the retransmit time), before
counting the number of still open net_contexts. This makes the test
outcome not dependent on the scheduling order of the different tasks.

Secondly the test actually checks the number of open contexts to be zero
so there is no need to wait for any open contexts to still close.

Signed-off-by: Sjors Hettinga <s.a.hettinga@gmail.com>
2022-05-05 14:45:02 -05:00
..
af_packet tests: Change duplicated names of the test cases 2022-03-30 17:42:01 -04:00
af_packet_ipproto_raw tests: Change duplicated names of the test cases 2022-03-30 17:42:01 -04:00
getaddrinfo kconfig: Rename the TEST_EXTRA stack size option to align with the rest 2022-02-22 08:23:05 -05:00
getnameinfo
misc everywhere: fix typos 2022-03-18 13:24:08 -04:00
net_mgmt
offload_dispatcher tests: net: Add socket dispatcher unit tests 2022-04-20 11:27:05 +02:00
poll kconfig: Rename the ZTEST stack size option to align with the rest 2022-02-22 08:23:05 -05:00
register
select
socketpair everywhere: fix typos 2022-03-18 13:24:08 -04:00
tcp tests: net: socket: tcp: Make test_open_close_immediately more robust 2022-05-05 14:45:02 -05:00
tls kconfig: Rename the ZTEST stack size option to align with the rest 2022-02-22 08:23:05 -05:00
tls_ext tests: Change duplicated names of the test cases 2022-03-30 17:42:01 -04:00
udp
websocket kconfig: Rename the ZTEST stack size option to align with the rest 2022-02-22 08:23:05 -05:00
socket_helpers.h