fix kicking message in test for 1.12

This commit is contained in:
Romain Beaumont 2017-06-19 14:57:28 +02:00
parent d9d1b7a56e
commit b445e7fb94
No known key found for this signature in database
GPG key ID: DB60E388B3BCF286

View file

@ -182,7 +182,7 @@ mc.supportedVersions.forEach(function(supportedVersion,i) {
});
var gotKicked = false;
client.on('disconnect', function(packet) {
assert.ok(packet.reason.indexOf('"Failed to verify username!"') != -1);
assert.ok(packet.reason.indexOf('"Failed to verify username!"') != -1 || packet.reason.indexOf('multiplayer.disconnect.unverified_username') != -1);
gotKicked = true;
});
client.on('end', function() {