Skip to content

Commit

Permalink
tests: event_loop: increase eplison on linux.
Browse files Browse the repository at this point in the history
Increase the epsilon for timed tests on linux to account for
noisy neighbours and other factors when running tests.

Without this increase the event_loop tests is prone to random
failures, especially when the same machine is being used for
other tasks.

Signed-off-by: Phillip Whelan <[email protected]>
  • Loading branch information
pwhelan committed Dec 4, 2023
1 parent deb8c1b commit f9f0cdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/internal/flb_event_loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#elif FLB_SYSTEM_MACOS
#define TIME_EPSILON_MS 200
#else
#define TIME_EPSILON_MS 10
#define TIME_EPSILON_MS 50
#endif

#define TIMER_COARSE_EPSION_MS 300
Expand Down

0 comments on commit f9f0cdb

Please sign in to comment.