Compare commits
1 commit
5e063f7906
...
73ba913be4
Author | SHA1 | Date | |
---|---|---|---|
73ba913be4 |
1 changed files with 2 additions and 1 deletions
|
@ -64,7 +64,8 @@ func TestDownload(t *testing.T) {
|
||||||
"https://self-signed.badssl.com/", // Example URL that can be used
|
"https://self-signed.badssl.com/", // Example URL that can be used
|
||||||
)
|
)
|
||||||
|
|
||||||
if err := ctx.Download(context.Background()); err == nil || err.Error() != "certificate from unknown authority" {
|
err := ctx.Download(context.Background())
|
||||||
|
if err == nil || err.Error() != "certificate from unknown authority" {
|
||||||
t.Errorf("expected certificate from unknown authority error, got %v", err)
|
t.Errorf("expected certificate from unknown authority error, got %v", err)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue