remove caas dep from tests

This commit is contained in:
Girish Ramakrishnan
2018-01-18 13:41:10 -08:00
parent 6a87558b52
commit 4b642a407f
11 changed files with 1362 additions and 1447 deletions

View File

@@ -13,6 +13,8 @@ var assert = require('assert'),
function getPublicIp(callback) {
assert.strictEqual(typeof callback, 'function');
if (process.env.BOX_ENV === 'test') return callback(null, '127.0.0.1');
async.retry({ times: 10, interval: 5000 }, function (callback) {
superagent.get(config.apiServerOrigin() + '/api/v1/helper/public_ip').timeout(30 * 1000).end(function (error, result) {
if (error || result.statusCode !== 200) {