Skip to content

Commit 89f0ad2

Browse files
committed
Skip assertion on Windows
1 parent 0b21903 commit 89f0ad2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib/config_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ package lib
88
import (
99
"os"
1010
"path/filepath"
11+
"runtime"
1112
"testing"
1213

1314
qt "github.com/frankban/quicktest"
@@ -48,7 +49,9 @@ func TestConfigFromArgs(t *testing.T) {
4849
c.Assert(cfg.ACL, qt.Equals, "public-read")
4950
c.Assert(cfg.BucketPath, qt.Equals, "mypath")
5051
c.Assert(cfg.Silent, qt.Equals, true)
51-
c.Assert(cfg.SourcePath, qt.Contains, tempDir)
52+
if runtime.GOOS != "windows" {
53+
c.Assert(cfg.SourcePath, qt.Contains, tempDir)
54+
}
5255
c.Assert(cfg.EndpointURL, qt.Equals, "http://localhost:9000")
5356
c.Assert(cfg.Try, qt.Equals, true)
5457
c.Assert(cfg.RegionName, qt.Equals, "myregion")

0 commit comments

Comments
 (0)