From 9e0cecfc6f5b7382c7ba9e56f7877e3320b4a73e Mon Sep 17 00:00:00 2001 From: Romain Beaumont Date: Thu, 1 Oct 2015 14:14:45 +0200 Subject: [PATCH] update minecraft-wrap : wrap.download now automatically checks the md5 of the file before and after downloading --- package.json | 2 +- test/test.js | 10 +--------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 1bc18f8..cc35acf 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "mocha": "~2.3.3", "power-assert": "^1.0.0", "source-map-support": "^0.3.2", - "minecraft-wrap": "~0.5.4" + "minecraft-wrap": "~0.6.0" }, "dependencies": { "babel-runtime": "^5.4.4", diff --git a/test/test.js b/test/test.js index 8eccbc9..1f0af65 100644 --- a/test/test.js +++ b/test/test.js @@ -213,15 +213,7 @@ mc.supportedVersions.forEach(function(supportedVersion){ describe("client "+version.minecraftVersion, function() { this.timeout(10 * 60 * 1000); - before(function(done){ - console.log(MC_SERVER_JAR); - fs.exists(MC_SERVER_JAR,function(exists){ - if(exists) - done(); - else - download(version.minecraftVersion,MC_SERVER_JAR,done); - }); - }); + before(download.bind(null,version.minecraftVersion,MC_SERVER_JAR)); afterEach(function(done) { wrap.stopServer(function(err){