Skip to content

tracker: Fix racey error insertion in test

Will Chandler (ex-GitLab) requested to merge wc/tracker-error-race into master

TestErrorTracker_ClearErrors would occasionally flake when the insertion time of the second write error exactly matched now, causing all write errors to be cleared.

Add a brief sleep after setting now to ensure the subsequent errors have insertion times that occur after it.

Closes #4796 (closed)

Merge request reports