2
0
Эх сурвалжийг харах

allow longer timeouts when testing

jomo 10 жил өмнө
parent
commit
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