diff options
Diffstat (limited to 'cli/tests/unit/http_test.ts')
-rw-r--r-- | cli/tests/unit/http_test.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cli/tests/unit/http_test.ts b/cli/tests/unit/http_test.ts index bd4c8da09..acdaef903 100644 --- a/cli/tests/unit/http_test.ts +++ b/cli/tests/unit/http_test.ts @@ -326,8 +326,8 @@ Deno.test( const listener = Deno.listenTls({ hostname, port, - certFile: "cli/tests/testdata/tls/localhost.crt", - keyFile: "cli/tests/testdata/tls/localhost.key", + cert: Deno.readTextFileSync("cli/tests/testdata/tls/localhost.crt"), + key: Deno.readTextFileSync("cli/tests/testdata/tls/localhost.key"), }); const conn = await listener.accept(); const httpConn = Deno.serveHttp(conn); @@ -2294,8 +2294,8 @@ Deno.test( const listener = Deno.listenTls({ hostname, port, - certFile: "cli/tests/testdata/tls/localhost.crt", - keyFile: "cli/tests/testdata/tls/localhost.key", + cert: await Deno.readTextFile("cli/tests/testdata/tls/localhost.crt"), + key: await Deno.readTextFile("cli/tests/testdata/tls/localhost.key"), }); const caCerts = [ @@ -2600,8 +2600,8 @@ for (const compression of [true, false]) { const listener = Deno.listenTls({ hostname, port, - certFile: "cli/tests/testdata/tls/localhost.crt", - keyFile: "cli/tests/testdata/tls/localhost.key", + cert: await Deno.readTextFile("cli/tests/testdata/tls/localhost.crt"), + key: await Deno.readTextFile("cli/tests/testdata/tls/localhost.key"), alpnProtocols: ["h2"], }); const server = httpServerWithErrorBody(listener, compression); |