Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
dernasherbrezon committed Jan 5, 2025
1 parent 4b8bdd9 commit f6eb198
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/test_tcp_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,11 @@ void test_hackrf() {
TEST_ASSERT_EQUAL_INT(0, read_data(actual, sizeof(expected), client0));
assert_float_array(expected, sizeof(expected) / sizeof(float), actual, sizeof(expected) / sizeof(float));
free(actual);

hackrf_stop_mock();
stop_tcp_server(server);
join_tcp_server_thread(server);
server = NULL;
}

void test_ping() {
Expand Down

0 comments on commit f6eb198

Please sign in to comment.