Windows CI: test-unit for pkg\filenotify

Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
John Howard 2016-02-11 17:47:26 -08:00
parent 209fd53a0c
commit d8039979b1

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")