fix(tests): Get TLS version from Node instead of hardcoding it (#4700)

This commit is contained in:
Yury Semikhatsky
2019-07-14 18:33:31 -07:00
committed by Andrey Lushnikov
parent bafda9fbe7
commit a39d553511
3 changed files with 18 additions and 7 deletions

View File

@@ -46,7 +46,6 @@ class TestServer {
const server = new TestServer(dirPath, port, {
key: fs.readFileSync(path.join(__dirname, 'key.pem')),
cert: fs.readFileSync(path.join(__dirname, 'cert.pem')),
secureProtocol: 'TLSv1_2_method',
passphrase: 'aaaa',
});
await new Promise(x => server._server.once('listening', x));