4 ms·
Automatic linter completely banning sleep(). Present reasonable alternative functions instead, like untilServiceAvailable. Sounds silly and obvious but look in
by Too 5y ago
Automatic linter completely banning sleep(). Present reasonable alternative functions instead, like untilServiceAvailable.
Sounds silly and obvious but look into your test suite and i'm sure you will find sleep everywhere.
Majority of all flaky tests are due to miscalculated sleeps in my experience. Sleep is also the biggest contributor to slow runs, with longer and longer sleeps being used to combat the flakiness. Both factors being the biggest pain points of E2E tests.