Skip to content

Commit 32a5933

Browse files
Tomasz Bursztykacfriedt
authored andcommitted
tests/net: Put the context down and not only the tcp part in tcp2 test
This will clean up the context properly and call net_tcp_put() relevantly. Signed-off-by: Tomasz Bursztyka <[email protected]>
1 parent 066dcd6 commit 32a5933

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/net/tcp2/src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ static void test_client_ipv4(void)
559559
/* Peer will release the semaphone after it sends ACK for data */
560560
test_sem_take(K_MSEC(100), __LINE__);
561561

562-
net_tcp_put(ctx);
562+
net_context_put(ctx);
563563

564564
/* Peer will release the semaphone after it receives
565565
* proper ACK to FIN | ACK
@@ -621,7 +621,7 @@ static void test_client_ipv6(void)
621621
/* Peer will release the semaphone after it sends ACK for data */
622622
test_sem_take(K_MSEC(100), __LINE__);
623623

624-
net_tcp_put(ctx);
624+
net_context_put(ctx);
625625

626626
/* Peer will release the semaphone after it receives
627627
* proper ACK to FIN | ACK

0 commit comments

Comments
 (0)