summaryrefslogtreecommitdiff
path: root/tests/http
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-11-09 12:24:49 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-11-09 12:24:49 -0800
commit73e2c6e5117aba36566c22edc1c19c8d6347d317 (patch)
tree5a3a1aaa9ba148623743293d737167e3748a97db /tests/http
parent12cd9df059dc70bed3da6c2a1041329f995e2a9d (diff)
downloadinfinitytier-73e2c6e5117aba36566c22edc1c19c8d6347d317.tar.gz
infinitytier-73e2c6e5117aba36566c22edc1c19c8d6347d317.zip
How did that ever work?
Diffstat (limited to 'tests/http')
-rw-r--r--tests/http/agent.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/http/agent.js b/tests/http/agent.js
index 8dec82d8..8afe517f 100644
--- a/tests/http/agent.js
+++ b/tests/http/agent.js
@@ -3,14 +3,17 @@
// ---------------------------------------------------------------------------
// Customizable parameters:
+// Time between startup and first test attempt
+var TEST_STARTUP_LAG = 10000;
+
// Maximum interval between test attempts (actual timing is random % this)
var TEST_INTERVAL_MAX = (60000 * 10);
// Test timeout in ms
-var TEST_TIMEOUT = 60000;
+var TEST_TIMEOUT = 30000;
// Where should I get other agents' IDs and POST results?
-var SERVER_HOST = '52.32.186.221';
+var SERVER_HOST = '52.26.196.147';
var SERVER_PORT = 18080;
// Which port do agents use to serve up test data to each other?
@@ -186,5 +189,5 @@ app.get('/',function(req,res) { return res.status(200).send(payload); });
var expressServer = app.listen(AGENT_PORT,function () {
// Start timeout-based loop
- doTest();
+ setTimeout(doTest(),TEST_STARTUP_LAG);
});