Skip to content

Commit

Permalink
fix(libsinsp_e2e): increase tcp_client_server* tests stability
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Scolaro <roberto.scolaro21@gmail.com>
  • Loading branch information
therealbobo committed May 21, 2024
1 parent 3ccf016 commit f47b808
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion test/libsinsp_e2e/tcp_client_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,10 @@ TEST_F(sys_call_test, tcp_client_server_with_connection_before_capturing_starts)
server.wait_till_ready();
client.wait_till_ready();

ASSERT_NO_FATAL_FAILURE({ event_capture::run(test, callback, filter); });
ASSERT_NO_FATAL_FAILURE({event_capture::run(test, callback, filter, event_capture::do_nothing,
event_capture::do_nothing, event_capture::always_continue, 131072,
(uint64_t)60 * 1000 * 1000 * 1000, (uint64_t)60 * 1000 * 1000 * 1000,
SINSP_MODE_LIVE, 3, false); });
ASSERT_EQ(1, state);
}

Expand Down
5 changes: 4 additions & 1 deletion test/libsinsp_e2e/tcp_client_server_ipv4_mapped.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,10 @@ void runtest_ipv4m(iotype iot,
}
};

ASSERT_NO_FATAL_FAILURE({ event_capture::run(test, callback, filter); });
ASSERT_NO_FATAL_FAILURE({event_capture::run(test, callback, filter, event_capture::do_nothing,
event_capture::do_nothing, event_capture::always_continue, 131072,
(uint64_t)60 * 1000 * 1000 * 1000, (uint64_t)60 * 1000 * 1000 * 1000,
SINSP_MODE_LIVE, 3, false); });
}

TEST_F(sys_call_test, tcp_client_server_ipv4m)
Expand Down

0 comments on commit f47b808

Please sign in to comment.