go/gopls/internal/regtest/diagnostics
Robert Findley 655abda1c0 gopls/internal/regtest: TestEditGoDirectiveWorkspace should fail eagerly
TestEditGoDirectiveWorkspace did an unconditional wait on expected
diagnostics. Turn this into OnceMet conditions that fail as soon as the
relevant diagnostic pass is complete.

Fixes golang/go#54825

Change-Id: I2654682108561dd60546a589ebd1c6aa2ebaff1f
Reviewed-on: https://go-review.googlesource.com/c/tools/+/427543
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Alan Donovan <adonovan@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
2022-09-02 14:20:31 +00:00
..
analysis_test.go go/analysis: remove stray print statement in the timeformat analyzer 2022-08-12 17:40:51 +00:00
builtin_test.go internal/lsp: don't call PackagesForFile on builtin.go 2021-04-29 13:06:21 +00:00
diagnostics_test.go gopls/internal/regtest: TestEditGoDirectiveWorkspace should fail eagerly 2022-09-02 14:20:31 +00:00
invalidation_test.go internal/lsp: re-send diagnostics on file events 2022-08-02 18:52:36 +00:00
undeclared_test.go gopls/internal/regtest/bench: refactor and improve benchmarks 2022-08-04 14:58:59 +00:00