mirror of https://github.com/golang/go.git
TestDebouncer inherently depends on the timing of events. Specifically, it can fail if the pause between two subsequent events is more than the debouncing delay. When this has proved flaky in the past I just increased the debouncing delay. However, tests are still occasionally flaking. Rather than just increase the delay arbitrarily, attempt to make the test more robust by retrying up to three times if the base assumption (that goroutines are scheduled within a reasonable amount of time) is not met. Fixes golang/go#45085 Change-Id: Ifa32e695d64ae4bcfe9600a0413bf6358dff9b7a Reviewed-on: https://go-review.googlesource.com/c/tools/+/309276 Trust: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org> |
||
|---|---|---|
| .. | ||
| analysisinternal | ||
| apidiff | ||
| event | ||
| fakenet | ||
| fastwalk | ||
| gocommand | ||
| gopathwalk | ||
| imports | ||
| jsonrpc2 | ||
| jsonrpc2_v2 | ||
| lsp | ||
| memoize | ||
| mod | ||
| packagesinternal | ||
| proxydir | ||
| span | ||
| stack | ||
| testenv | ||
| tool | ||
| typeparams | ||
| typesinternal | ||
| xcontext | ||