tests: internal: network: macos: Add small waiting for proceeding timer tick
#include <fluent-bit/flb_error.h>
#include <fluent-bit/flb_network.h>
#include <fluent-bit/flb_socket.h>
+#include <fluent-bit/flb_time.h>
#include <time.h>
#include "flb_tests_internal.h"
@@ -85,6 +86,12 @@ static void test_client_server(int is_ipv6)
TEST_CHECK(ret == -1);
TEST_CHECK(errno == EINPROGRESS);
+#ifdef FLB_SYSTEM_MACOS
+ /* On macOS, its internal timer's is inacccurate without waiting code.
+ * We need to proceed its timer tick for processing events. */
+ flb_time_msleep(50);
+#endif
+
/* Event loop */
while (1) {
mk_event_wait(evl);
