gopls/internal/regtest/misc: skip TestInconsistentVendoring on Windows

This test is probably detecting a real bug that exclusively affects
Windows. To avoid masking other bugs, let's skip the test on that
platform until the bug is fixed.

For golang/go#49646

Change-Id: I38c615d47454ecfd72b416fff2018973b3ae9259
Reviewed-on: https://go-review.googlesource.com/c/tools/+/364676
Trust: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
This commit is contained in:
Bryan C. Mills 2021-11-17 11:41:19 -05:00
parent 7d6c71f28a
commit 771dabf433
1 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,7 @@
package misc
import (
"runtime"
"testing"
. "golang.org/x/tools/internal/lsp/regtest"
@ -26,6 +27,9 @@ var Goodbye error
func TestInconsistentVendoring(t *testing.T) {
testenv.NeedsGo1Point(t, 14)
if runtime.GOOS == "windows" {
t.Skipf("skipping test due to flakiness on Windows: https://golang.org/issue/49646")
}
const pkgThatUsesVendoring = `
-- go.mod --