From 57803583f4730c8c5364793d1341e3cb259b8eba Mon Sep 17 00:00:00 2001 From: shunsuke maeda Date: Sat, 4 May 2019 15:58:37 +0900 Subject: [PATCH] Add skip statement --- infrastructure/archive/tar/tar_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/infrastructure/archive/tar/tar_test.go b/infrastructure/archive/tar/tar_test.go index d7d6ea1b..47c54add 100644 --- a/infrastructure/archive/tar/tar_test.go +++ b/infrastructure/archive/tar/tar_test.go @@ -9,6 +9,7 @@ import ( "os" "path/filepath" "reflect" + "runtime" "strings" "testing" "time" @@ -107,6 +108,9 @@ func TestCreate(t *testing.T) { if os.Getuid() == 0 { t.Skip("skip if root user") } + if runtime.GOOS == "windows" { + t.Skip("skip in windows") + } // setup testDir, remove := createTestDir(t)