From 042129eed45289c0fc94b9d9f3bc6f7e3d297ebe Mon Sep 17 00:00:00 2001 From: jomo Date: Sat, 29 Nov 2014 17:39:50 +0100 Subject: [PATCH] log used username / uuid in tests --- package.json | 2 +- test/test.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 35ec744..22c555f 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "description": "A NodeJS application to server Minecraft avatars.", "contributors": [ { - "name": "Jomo" + "name": "jomo" } ], "repository": { diff --git a/test/test.js b/test/test.js index 6243d8c..16849b9 100644 --- a/test/test.js +++ b/test/test.js @@ -9,7 +9,7 @@ var skins = require('../modules/skins'); var cache = require("../modules/cache"); // we don't want tests to fail because of slow internet -config.http_timeout = 3000; +config.http_timeout *= 3; // no spam logging.log = function(){}; @@ -18,7 +18,9 @@ var uuids = fs.readFileSync('test/uuids.txt').toString().split("\n"); var usernames = fs.readFileSync('test/usernames.txt').toString().split("\n"); // Get a random UUID + username in order to prevent rate limiting var uuid = uuids[Math.round(Math.random() * (uuids.length - 1))]; +console.log("using uuid '" + uuid + "'"); var username = usernames[Math.round(Math.random() * (usernames.length - 1))]; +console.log("using username '" + username + "'"); describe('Crafatar', function() { before(function() {