Merge pull request #20259 from Microsoft/jjh/testunit-pkgfilenotify

Windows CI: test-unit for pkg\filenotify
This commit is contained in:
Vincent Demeester 2016-02-12 08:32:43 +01:00
commit 2b1675779f

View file

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