1
0
mirror of https://github.com/golang/go synced 2024-11-19 05:34:40 -07:00
go/internal/lsp/regtest
Rob Findley fefc8d1877 internal/lsp/regtest: clean-up and more error handling
Fix various things related to regtest execution:
 + Check the error from OpenFile in fake.Editor.GoToDefinition.
 + Add an error-checked wrapper to env for CloseBuffer.
 + Use env wrappers in TestDiagnosticClearingOnClose.
 + Use os.Executable to get the test binary path.
 + Add a -listen.timeout to the remote gopls process, so that it is
   cleaned up.

Updates golang/go#36879

Change-Id: I056ff50bdb611a78ad78e4f5e2a94a4f155cc9de
Reviewed-on: https://go-review.googlesource.com/c/tools/+/220902
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2020-02-25 19:00:36 +00:00
..
definition_test.go internal/lsp/regtest: skip flaky TestGoToStdlibDefinition 2020-02-21 15:21:58 +00:00
diagnostics_test.go internal/lsp/regtest: clean-up and more error handling 2020-02-25 19:00:36 +00:00
env.go internal/lsp/regtest: clean-up and more error handling 2020-02-25 19:00:36 +00:00
reg_test.go internal/lsp/regtest: clean-up and more error handling 2020-02-25 19:00:36 +00:00
shared_test.go internal/jsonrpc2: support serving over unix domain sockets 2020-02-19 16:14:01 +00:00