From fd7fbc0f3ce2163a12b617c028fdd1ce15c1c63c Mon Sep 17 00:00:00 2001 From: Jake Date: Sat, 29 Nov 2014 12:28:37 -0600 Subject: [PATCH] Fix some tests --- test/test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test.js b/test/test.js index 16849b9..6119d31 100644 --- a/test/test.js +++ b/test/test.js @@ -134,7 +134,7 @@ describe('Crafatar', function() { assert.doesNotThrow(function() { fs.openSync("face.png", "w"); fs.openSync("helm.png", "w"); - networking.skin_file("http://textures.minecraft.net/texture/477be35554684c28bdeee4cf11c591d3c88afb77e0b98da893fd7bc318c65184", "face.png", "helm.png", function(err) { + networking.skin_file("http://textures.minecraft.net/texture/477be35554684c28bdeee4cf11c591d3c88afb77e0b98da893fd7bc318c65184", "face.png", function(err) { assert.strictEqual(err, null); // no error here, but it shouldn't throw exceptions fs.unlinkSync("face.png"); fs.unlinkSync("helm.png"); @@ -189,7 +189,7 @@ describe('Crafatar', function() { it("should time out on skin download", function(done) { var original_timeout = config.http_timeout; config.http_timeout = 1; - networking.skin_file("http://textures.minecraft.net/texture/477be35554684c28bdeee4cf11c591d3c88afb77e0b98da893fd7bc318c65184", "face.png", "helm.png", function(err) { + networking.skin_file("http://textures.minecraft.net/texture/477be35554684c28bdeee4cf11c591d3c88afb77e0b98da893fd7bc318c65184", "face.png", function(err) { assert.strictEqual(err.code, "ETIMEDOUT"); config.http_timeout = original_timeout; done(); @@ -197,7 +197,7 @@ describe('Crafatar', function() { }); it("should not find the skin", function(done) { assert.doesNotThrow(function() { - networking.skin_file("http://textures.minecraft.net/texture/this-does-not-exist", "face.png", "helm.png", function(err) { + networking.skin_file("http://textures.minecraft.net/texture/this-does-not-exist", "face.png", function(err) { assert.strictEqual(err, null); // no error here, but it shouldn't throw exceptions done(); });