From 16efc62eb27885e6dfdb18df3a70a354d8fcaba9 Mon Sep 17 00:00:00 2001 From: Roberto Scolaro Date: Sat, 21 Sep 2024 17:25:24 +0000 Subject: [PATCH] fix timeouts Signed-off-by: Roberto Scolaro --- test/libsinsp_e2e/forking.cpp | 4 +++- test/libsinsp_e2e/unix_client_server.cpp | 10 +++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/test/libsinsp_e2e/forking.cpp b/test/libsinsp_e2e/forking.cpp index 98a01a8154..a97eca3a51 100644 --- a/test/libsinsp_e2e/forking.cpp +++ b/test/libsinsp_e2e/forking.cpp @@ -283,7 +283,9 @@ TEST_F(sys_call_test, forking_process_expired) { event_capture::always_continue, 131072, 5 * ONE_SECOND_IN_NS, - ONE_SECOND_IN_NS); + ONE_SECOND_IN_NS, + SINSP_MODE_LIVE, + 20); }); EXPECT_TRUE(sleep_caught); diff --git a/test/libsinsp_e2e/unix_client_server.cpp b/test/libsinsp_e2e/unix_client_server.cpp index a668cb3e8a..4b1ef37f97 100644 --- a/test/libsinsp_e2e/unix_client_server.cpp +++ b/test/libsinsp_e2e/unix_client_server.cpp @@ -251,7 +251,15 @@ TEST_F(sys_call_test, unix_client_server) { // // OUTPUT VALDATION // - 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, + 20);}); EXPECT_FALSE(first_connect_or_accept_seen); EXPECT_EQ(8, callnum); }