diff --git a/common.js b/common.js index 270cb72..1d93d74 100644 --- a/common.js +++ b/common.js @@ -10,9 +10,10 @@ exports = module.exports = { verifyResponse: verifyResponse }; +var gNow = (new Date()).getTime().toString(); + function cloudronDomain(filename) { - var r = (Math.random() * 1000).toFixed(); - return 't-' + path.basename(filename, '-test.js') + '-' + r + '.smartserver.io'; + return 't-' + path.basename(filename, '-test.js') + '-' + gNow + '.smartserver.io'; } function verifyResponse(res, errorMessage) {