Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mmetc committed Jan 3, 2025
1 parent 7fb6dfa commit f79c33f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/cwhub/download_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ func TestFetchIndex(t *testing.T) {

downloader.URLTemplate = "http://x/%s/%s"
downloaded, err = downloader.FetchIndex(ctx, destPath, !withContent, discard)
cstest.AssertErrorContains(t, err, `Get "http://x/main/.index.json": dial tcp: lookup x: no such host`)
// can be no such host, server misbehaving, etc
cstest.AssertErrorContains(t, err, `Get "http://x/main/.index.json": dial tcp: lookup x`)
assert.False(t, downloaded)

}
Expand Down

0 comments on commit f79c33f

Please sign in to comment.