mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-09 04:04:13 +00:00
More tweaks to tests... just about ready to run at scale.
This commit is contained in:
parent
9653531242
commit
4c24e0cfb0
1
.gitignore
vendored
1
.gitignore
vendored
@ -53,6 +53,7 @@ node_modules
|
||||
cluster-geo/cluster-geo/config.js
|
||||
cluster-geo/cluster-geo/cache.*
|
||||
tests/http/zerotier-one
|
||||
tests/http/result_*
|
||||
|
||||
# MacGap wrapper build files
|
||||
/ext/mac-ui-macgap1-wrapper/src/MacGap.xcodeproj/project.xcworkspace/xcuserdata/*
|
||||
|
@ -217,6 +217,7 @@ var expressServer = app.listen(AGENT_PORT,agentIdToIp(thisAgentId),function () {
|
||||
console.error('FATAL: unable to contact or query server: '+err.toString());
|
||||
process.exit(1);
|
||||
}
|
||||
doTestsAndReport();
|
||||
setInterval(doTestsAndReport,TEST_INTERVAL);
|
||||
});
|
||||
});
|
||||
|
@ -41,15 +41,15 @@ app.post('/:testNumber/:agentId',function(req,res) {
|
||||
}
|
||||
result = {
|
||||
agentId: agentId,
|
||||
testNumber: testNumber,
|
||||
testNumber: parseInt(testNumber),
|
||||
receiveTime: receiveTime,
|
||||
results: resultData
|
||||
};
|
||||
|
||||
var nows = receiveTime.toString(16);
|
||||
while (nows.length < 16)
|
||||
nows = '0' + nows;
|
||||
fs.writeFile('result_'+agentId+'_'+nows,JSON.stringify(result),function(err) {
|
||||
testNumber = testNumber.toString();
|
||||
while (testNumber.length < 10)
|
||||
testNumber = '0' + testNumber;
|
||||
fs.writeFile('result_'+testNumber+'_'+agentId,JSON.stringify(result),function(err) {
|
||||
console.log(result);
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user