mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-28 13:45:37 -04:00
Fix tests involving the server jar
This commit is contained in:
parent
e76d2743e1
commit
cb24696982
@ -232,8 +232,12 @@ describe("client", function() {
|
||||
}
|
||||
fs.writeFile(path.join(MC_SERVER_PATH, "server.properties"), str, cb);
|
||||
});
|
||||
batch.push(function(cb) {
|
||||
fs.writeFile(path.join(MC_SERVER_PATH, "eula.txt"), "eula=true", cb);
|
||||
});
|
||||
batch.end(function(err) {
|
||||
if (err) return done(err);
|
||||
//console.log(MC_SERVER_JAR);
|
||||
mcServer = spawn('java', [ '-jar', MC_SERVER_JAR, 'nogui'], {
|
||||
stdio: 'pipe',
|
||||
cwd: MC_SERVER_PATH,
|
||||
@ -265,6 +269,8 @@ describe("client", function() {
|
||||
mcServer.removeListener('line', onLine);
|
||||
done();
|
||||
}
|
||||
//else
|
||||
// console.log(line);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user