Skip to content

Commit

Permalink
test(http): fix error message of unknown issuer (#1681)
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k committed Dec 7, 2021
1 parent 7f0266c commit 3a441de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions http/server_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ Deno.test(`Server.listenAndServeTls should handle requests`, async () => {
await assertThrowsAsync(
() => badConn.read(new Uint8Array(1)),
Deno.errors.InvalidData,
"invalid certificate: UnknownIssuer",
"invalid peer certificate contents: invalid peer certificate: UnknownIssuer",
"Read with missing certFile didn't throw an InvalidData error when it should have.",
);

Expand Down Expand Up @@ -553,7 +553,7 @@ Deno.test({
await assertThrowsAsync(
() => badConn.read(new Uint8Array(1)),
Deno.errors.InvalidData,
"invalid certificate: UnknownIssuer",
"invalid peer certificate contents: invalid peer certificate: UnknownIssuer",
"Read with missing certFile didn't throw an InvalidData error when it should have.",
);

Expand Down Expand Up @@ -730,7 +730,7 @@ Deno.test(`Server.listenAndServeTls should handle requests`, async () => {
await assertThrowsAsync(
() => badConn.read(new Uint8Array(1)),
Deno.errors.InvalidData,
"invalid certificate: UnknownIssuer",
"invalid peer certificate contents: invalid peer certificate: UnknownIssuer",
"Read with missing certFile didn't throw an InvalidData error when it should have.",
);

Expand Down

0 comments on commit 3a441de

Please sign in to comment.