Skip to content

Commit

Permalink
fix timeouts
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 Sep 21, 2024
1 parent bdbfa7d commit 16efc62
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 3 additions & 1 deletion test/libsinsp_e2e/forking.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
10 changes: 9 additions & 1 deletion test/libsinsp_e2e/unix_client_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 16efc62

Please sign in to comment.