Skip to content

Commit

Permalink
test: fix testings to work in openssl-1.1.1-pre6
Browse files Browse the repository at this point in the history
  • Loading branch information
shigeki committed May 5, 2018
1 parent abc4fc6 commit a6a1e2e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/parallel/test-tls-dhe.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function test(keylen, expectedCipher, cb) {

server.listen(0, '127.0.0.1', function() {
const args = ['s_client', '-connect', `127.0.0.1:${this.address().port}`,
'-cipher', ciphers];
'-cipher', ciphers, '-tls1_2'];

const client = spawn(common.opensslCli, args);
let out = '';
Expand Down
3 changes: 2 additions & 1 deletion test/parallel/test-tls-ecdh-auto.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ let gotReply = false;
server.listen(0, function() {
const args = ['s_client',
'-cipher', `${options.ciphers}`,
'-connect', `127.0.0.1:${this.address().port}`];
'-connect', `127.0.0.1:${this.address().port}`,
'-tls1_2'];

const client = spawn(common.opensslCli, args);

Expand Down
3 changes: 2 additions & 1 deletion test/parallel/test-tls-ecdh-multiple.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ let gotReply = false;
server.listen(0, function() {
const args = ['s_client',
'-cipher', `${options.ciphers}`,
'-connect', `127.0.0.1:${this.address().port}`];
'-connect', `127.0.0.1:${this.address().port}`,
'-tls1_2'];

const client = spawn(common.opensslCli, args);

Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-tls-ecdh.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const server = tls.createServer(options, common.mustCall(function(conn) {

server.listen(0, '127.0.0.1', common.mustCall(function() {
const cmd = `"${common.opensslCli}" s_client -cipher ${
options.ciphers} -connect 127.0.0.1:${this.address().port}`;
options.ciphers} -connect 127.0.0.1:${this.address().port} -tls1_2`;

exec(cmd, common.mustCall(function(err, stdout, stderr) {
assert.ifError(err);
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-tls-set-ciphers.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const server = tls.createServer(options, common.mustCall(function(conn) {

server.listen(0, '127.0.0.1', function() {
const cmd = `"${common.opensslCli}" s_client -cipher ${
options.ciphers} -connect 127.0.0.1:${this.address().port}`;
options.ciphers} -connect 127.0.0.1:${this.address().port} -tls1_2`;

exec(cmd, function(err, stdout, stderr) {
assert.ifError(err);
Expand Down

0 comments on commit a6a1e2e

Please sign in to comment.