Fix tests : client.session.username doesn't exist

This commit is contained in:
roblabla 2015-10-02 01:30:23 +02:00
parent 5207141cec
commit 8ce13dd9e2

View file

@ -270,7 +270,7 @@ mc.supportedVersions.forEach(function(supportedVersion){
var lineListener=function(line) {
var match = line.match(/\[Server thread\/INFO\]: <(.+?)> (.+)/);
if(!match) return;
assert.strictEqual(match[1], client.session.username);
assert.strictEqual(match[1], client.username);
assert.strictEqual(match[2], "hello everyone; I have logged in.");
wrap.writeServer("say hello\n");
};