diff --git a/store_test.go b/store_test.go index 739c5c3..bdd518a 100644 --- a/store_test.go +++ b/store_test.go @@ -3,6 +3,7 @@ package binny import ( "os" "path/filepath" + "runtime" "testing" "github.com/stretchr/testify/assert" @@ -104,6 +105,9 @@ func TestStore_GetByName(t *testing.T) { } func TestStore_Entries(t *testing.T) { + if runtime.GOOS == "windows" { + t.Skip("test fixtures have different sha256 digests on Windows due to linbreak conversion") + } tests := []struct { name string storeRoot string diff --git a/tool/goinstall/installer_test.go b/tool/goinstall/installer_test.go index 78c1453..689423b 100644 --- a/tool/goinstall/installer_test.go +++ b/tool/goinstall/installer_test.go @@ -2,6 +2,8 @@ package goinstall import ( "fmt" + "os" + "strings" "testing" "github.com/stretchr/testify/assert" @@ -108,6 +110,7 @@ func TestInstaller_InstallTo(t *testing.T) { i.goInstallRunner = tt.fields.goInstallRunner got, err := i.InstallTo(tt.args.version, tt.args.destDir) + got = strings.ReplaceAll(got, string(os.PathSeparator), "/") if !tt.wantErr(t, err, fmt.Sprintf("InstallTo(%v, %v)", tt.args.version, tt.args.destDir)) { return }