Przeglądaj źródła

Windows CI: test-unit for pkg\filenotify

Signed-off-by: John Howard <jhoward@microsoft.com>
John Howard 9 lat temu
rodzic
commit
28ee6fe7ca
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      pkg/filenotify/poller_test.go

+ 4 - 0
pkg/filenotify/poller_test.go

@@ -4,6 +4,7 @@ import (
 	"fmt"
 	"io/ioutil"
 	"os"
+	"runtime"
 	"testing"
 	"time"
 
@@ -36,6 +37,9 @@ func TestPollerAddRemove(t *testing.T) {
 }
 
 func TestPollerEvent(t *testing.T) {
+	if runtime.GOOS == "windows" {
+		t.Skip("No chmod on Windows")
+	}
 	w := NewPollingWatcher()
 
 	f, err := ioutil.TempFile("", "test-poller")