Skip to content

Commit

Permalink
fix windows test
Browse files Browse the repository at this point in the history
  • Loading branch information
mmetc committed Mar 22, 2024
1 parent d70d3ad commit 9229930
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cwhub/dataset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ func TestDownloadFile(t *testing.T) {

// bad target
err = downloadFile(ts.URL+"/xx", "")
cstest.RequireErrorContains(t, err, "no such file or directory")
cstest.RequireErrorContains(t, err, cstest.PathNotFoundMessage)

// destination directory does not exist
err = downloadFile(ts.URL+"/xx", filepath.Join(t.TempDir(), "missing/example.txt"))
cstest.RequireErrorContains(t, err, "no such file or directory")
cstest.RequireErrorContains(t, err, cstest.PathNotFoundMessage)
}

0 comments on commit 9229930

Please sign in to comment.