Skip to content

Commit 34b07b9

Browse files
committed
tests: net: context: Fix tests when using locking
There was a false timeout error because we did not check the return value correctly. This issue is seen now because code flow in core IP stack is happening in different order than before. Signed-off-by: Jukka Rissanen <[email protected]>
1 parent 93e5181 commit 34b07b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/net/context/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ void timeout_thread(struct net_context *ctx, void *param2, void *param3)
766766
return;
767767
}
768768

769-
if (recv_cb_timeout_called) {
769+
if (!recv_cb_timeout_called) {
770770
DBG("Data received on time, recv test failed\n");
771771
cb_failure = true;
772772
return;

0 commit comments

Comments
 (0)