From b445e7fb9470b8d4f0da709c728db31c60739f5c Mon Sep 17 00:00:00 2001 From: Romain Beaumont Date: Mon, 19 Jun 2017 14:57:28 +0200 Subject: [PATCH] fix kicking message in test for 1.12 --- test/clientTest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/clientTest.js b/test/clientTest.js index 8304228..fc17ea4 100644 --- a/test/clientTest.js +++ b/test/clientTest.js @@ -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() {