Skip to content

Commit

Permalink
tests: event_loop: increase eplison on linux to account for noisy nei…
Browse files Browse the repository at this point in the history
…ghbours.

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 12, 2023
1 parent 1cb694e commit 4597b42
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 4597b42

Please sign in to comment.