Skip to content

Commit daff016

Browse files
test: use static keys
1 parent c6ab282 commit daff016

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
'use strict';
1414

15-
const fs = require('fs');
15+
const { readFile } = require('fs').promises;
1616
const http = require('http');
1717
const https = require('https');
1818
const http2 = require('http2');
@@ -74,7 +74,7 @@ class Server {
7474
const createServer = async (handler) => {
7575
let options = {};
7676
if (this.secure) {
77-
const keys = JSON.parse(fs.readFileSync(`${__dirname}/keys.json`));
77+
const keys = JSON.parse(await readFile(`${__dirname}/keys.json`));
7878
options = { ...keys };
7979
}
8080
// merge with user-provided options

0 commit comments

Comments
 (0)