Skip to content

Commit 32dd873

Browse files
rluboskartben
authored andcommitted
tests: net: http_server: core: Fix scheduling race
After recent kernel changes there's some thread scheduling race when running tests, therefore add k_yield() at the end of each test to make sure the server thread has a chance to run and do the cleanup. Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
1 parent e338657 commit 32dd873

File tree

1 file changed

+2
-0
lines changed
  • tests/net/lib/http_server/core/src

1 file changed

+2
-0
lines changed

tests/net/lib/http_server/core/src/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2750,6 +2750,8 @@ static void http_server_tests_after(void *fixture)
27502750
}
27512751

27522752
(void)http_server_stop();
2753+
2754+
k_yield();
27532755
}
27542756

27552757
ZTEST_SUITE(server_function_tests, NULL, NULL, http_server_tests_before,

0 commit comments

Comments
 (0)