From f71a27a3314ed2f903f1a34a30fae5c050d37460 Mon Sep 17 00:00:00 2001 From: Romain Beaumont Date: Sun, 29 Mar 2015 18:18:58 +0200 Subject: [PATCH] checks what the server output is --- test/test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test.js b/test/test.js index 0da39ab..2ab6cbe 100644 --- a/test/test.js +++ b/test/test.js @@ -255,7 +255,7 @@ describe("client", function() { return done(new Error("The file "+MC_SERVER_JAR+" doesn't exist.")); } - mcServer = spawn('java', [ '-Dlog4j.configurationFile=server/server_debug.xml', '-jar', MC_SERVER_JAR, 'nogui'], { + mcServer = spawn('java', [ '-Dlog4j.configurationFile=server/server_debug.xml', '-jar', MC_SERVER_JAR, 'nogui'], { stdio: 'pipe', cwd: MC_SERVER_PATH, }); @@ -266,6 +266,7 @@ describe("client", function() { mcServer.stdout.on('data', onData); mcServer.stderr.on('data', onData); function onData(data) { + console.log(data); buffer += data; var lines = buffer.split("\n"); var len = lines.length - 1;