Skip to content

Commit

Permalink
* Revert generic SSL flag
Browse files Browse the repository at this point in the history
* Specific SSL flag set for clear pwd tests
  • Loading branch information
ZJONSSON committed Mar 29, 2020
1 parent 65368e4 commit 810dfb0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/FakeServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ FakeConnection.prototype.handshake = function(options) {
var packetOptions = common.extend({
scrambleBuff1 : Buffer.from('1020304050607080', 'hex'),
scrambleBuff2 : Buffer.from('0102030405060708090A0B0C', 'hex'),
serverCapabilities1 : 512 | 1 << 11, // only 2 flags, PROTOCOL_41 and SSL
serverCapabilities1 : 512, // only 1 flag, PROTOCOL_41
protocol41 : true
}, this._handshakeOptions);

Expand Down
4 changes: 3 additions & 1 deletion test/unit/connection/test-auth-switch-clear-secure.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ server.on('connection', function(incomingConnection) {
});
});

incomingConnection.handshake();
incomingConnection.handshake({
serverCapabilities1: 512 | 1 << 11 // PROTOCOL_41 and SSL
});
});

process.on('exit', function() {
Expand Down
4 changes: 3 additions & 1 deletion test/unit/connection/test-auth-switch-native.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ server.on('connection', function(incomingConnection) {
});
});

incomingConnection.handshake();
incomingConnection.handshake({
serverCapabilities1: 512 | 1 << 11 // PROTOCOL_41 and SSL
});
});
});

Expand Down

0 comments on commit 810dfb0

Please sign in to comment.