Compare commits
1 commit
73ba913be4
...
5e063f7906
Author | SHA1 | Date | |
---|---|---|---|
5e063f7906 |
1 changed files with 1 additions and 2 deletions
|
@ -64,8 +64,7 @@ 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
|
||||||
)
|
)
|
||||||
|
|
||||||
err := ctx.Download(context.Background())
|
if err := ctx.Download(context.Background()); err == nil || err.Error() != "certificate from unknown authority" {
|
||||||
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