浏览代码

Windows CI: test-unit for pkg\filenotify

Signed-off-by: John Howard <jhoward@microsoft.com>
John Howard 9 年之前
父节点
当前提交
28ee6fe7ca
共有 1 个文件被更改,包括 4 次插入0 次删除
  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")