Skip to content

Commit ae18417

Browse files
committed
gopls/internal/filewatcher: skip test for unsupported OS
For golang/go#74543 Change-Id: Ie0a58f39bc7ec53e2ee5d61818bb99c84181553e Reviewed-on: https://go-review.googlesource.com/c/tools/+/686822 Reviewed-by: Robert Findley <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 8391b17 commit ae18417

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

gopls/internal/filewatcher/filewatcher_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ import (
1818
)
1919

2020
func TestFileWatcher(t *testing.T) {
21+
switch runtime.GOOS {
22+
case "darwin", "linux", "windows":
23+
default:
24+
t.Skip("unsupported OS")
25+
}
26+
2127
testCases := []struct {
2228
name string
2329
goos []string // if not empty, only run in these OS.

0 commit comments

Comments
 (0)