浏览代码

allow longer timeouts when testing

jomo 10 年之前
父节点
当前提交
7dbfaedb2f
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      test/test.js

+ 3 - 0
test/test.js

@@ -7,6 +7,9 @@ var config = require('../modules/config');
 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;
+
 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