Skip to content

Commit

Permalink
Fix joining expected path to support windows
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewJohn committed May 31, 2024
1 parent 7a25f5a commit 57ebfd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/download_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func TestDownloadProductFromURL(t *testing.T) {
if err != nil {
t.Fatal(err)
}
if expectedZipPath := tempDir + "/my_product_download_2.1.0_linux_amd64.zip"; zipFilePath != expectedZipPath {
if expectedZipPath := filepath.Join(tempDir, "my_product_download_2.1.0_linux_amd64.zip"); zipFilePath != expectedZipPath {
t.Errorf("Returned zipFile not expected path. Expected: %q, actual: %q", expectedZipPath, zipFilePath)
}
}

0 comments on commit 57ebfd7

Please sign in to comment.