Skip to content

Commit 36a22ed

Browse files
committed
* Revert generic SSL flag
* Specific SSL flag set for clear pwd tests
1 parent 3fa3c71 commit 36a22ed

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

test/FakeServer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ FakeConnection.prototype.handshake = function(options) {
9595
var packetOptions = common.extend({
9696
scrambleBuff1 : Buffer.from('1020304050607080', 'hex'),
9797
scrambleBuff2 : Buffer.from('0102030405060708090A0B0C', 'hex'),
98-
serverCapabilities1 : 512 | 1 << 11, // only 2 flags, PROTOCOL_41 and SSL
98+
serverCapabilities1 : 512, // only 1 flag, PROTOCOL_41
9999
protocol41 : true
100100
}, this._handshakeOptions);
101101

test/unit/connection/test-auth-switch-clear-secure.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ server.on('connection', function(incomingConnection) {
3636
});
3737
});
3838

39-
incomingConnection.handshake();
39+
incomingConnection.handshake({
40+
serverCapabilities1: 512 | 1 << 11 // PROTOCOL_41 and SSL
41+
});
4042
});
4143

4244
process.on('exit', function() {

test/unit/connection/test-auth-switch-native.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ server.on('connection', function(incomingConnection) {
3838
});
3939
});
4040

41-
incomingConnection.handshake();
41+
incomingConnection.handshake({
42+
serverCapabilities1: 512 | 1 << 11 // PROTOCOL_41 and SSL
43+
});
4244
});
4345
});
4446

0 commit comments

Comments
 (0)