diff --git a/internal/providercache/dir_modify_test.go b/internal/providercache/dir_modify_test.go index 9d1c8ce56..14f1a20e7 100644 --- a/internal/providercache/dir_modify_test.go +++ b/internal/providercache/dir_modify_test.go @@ -4,6 +4,7 @@ import ( "context" "io/ioutil" "os" + "path/filepath" "testing" "github.com/apparentlymart/go-versions/versions" @@ -19,6 +20,10 @@ func TestInstallPackage(t *testing.T) { t.Fatal(err) } defer os.RemoveAll(tmpDirPath) + tmpDirPath, err = filepath.EvalSymlinks(tmpDirPath) + if err != nil { + t.Fatal(err) + } linuxPlatform := getproviders.Platform{ OS: "linux", @@ -74,6 +79,10 @@ func TestLinkFromOtherCache(t *testing.T) { t.Fatal(err) } defer os.RemoveAll(tmpDirPath) + tmpDirPath, err = filepath.EvalSymlinks(tmpDirPath) + if err != nil { + t.Fatal(err) + } windowsPlatform := getproviders.Platform{ OS: "windows",