hashicorp / hashicorp/consul

TestRetryer fails spontaneously

Open
#6,982 0 comments 0 reactions 0 assignees View on GitHub
theme/testing
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
2d 6h
Merged PRs (30d)
43

Description

On 1.5.2 `TestRetryer` fails spontaneously, once in a while as follows:

~~~~
--- FAIL: TestRetryer (0.23s)
--- FAIL: TestRetryer/counter (0.23s)
retry_test.go:39: loop took 228.826018ms want 200ms (+/- 25ms)
~~~~

Note how tight is the time frame - merely ~4ms off is enough to make the test fail...

Tests should be more reliable...

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.