Skip to content

Commit

Permalink
fix(libsinsp_e2e): increase tcp_client_server test stability
Browse files Browse the repository at this point in the history
Signed-off-by: therealbobo <[email protected]>
  • Loading branch information
therealbobo committed May 17, 2024
1 parent d3a9e0d commit 6187165
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/libsinsp_e2e/tcp_client_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ void runtest(iotype iot,
if (evt->get_fd_info()->m_type != SCAP_FD_IPV4_SOCK)
{
//
// Skip non-tcp sockets. Python opens unix sockets
// to god knows what.
// Skip non-tcp sockets. Python opens unix sockets.
//
return;
}
Expand Down Expand Up @@ -308,7 +307,10 @@ void runtest(iotype iot,
//
// 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, 3, false); });
ASSERT_GT(callnum,0);
}

Expand Down

0 comments on commit 6187165

Please sign in to comment.