From 9ec32e792643a01ed498cc294cc9a89cc6031779 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Wed, 4 Nov 2015 13:28:43 -0800 Subject: Agent settings for big test. --- tests/http/agent.js | 95 +++-------------------------------------------------- 1 file changed, 4 insertions(+), 91 deletions(-) (limited to 'tests') diff --git a/tests/http/agent.js b/tests/http/agent.js index e90ee482..eafe265d 100644 --- a/tests/http/agent.js +++ b/tests/http/agent.js @@ -3,17 +3,17 @@ // --------------------------------------------------------------------------- // Customizable parameters: -// Maximum interval between test attempts -var TEST_INTERVAL_MAX = (60000 * 5); +// Maximum interval between test attempts (actual timing is random % this) +var TEST_INTERVAL_MAX = (60000 * 10); // Test timeout in ms var TEST_TIMEOUT = 60000; -// Where should I contact to register and query a list of other test agents? +// Where should I get other agents' IDs and POST results? var SERVER_HOST = '174.136.102.178'; var SERVER_PORT = 18080; -// Which port should agents use for their HTTP? +// Which port do agents use to serve up test data to each other? var AGENT_PORT = 18888; // Payload size in bytes @@ -181,93 +181,6 @@ function doTest() submit.end(); }; -/* -function performTestOnAllPeers(peers,callback) -{ - var allResults = {}; - var allRequests = []; - var timedOut = false; - var endOfTestTimer = setTimeout(function() { - timedOut = true; - for(var x=0;x