diff --git a/src/routes/test/apps-test.js b/src/routes/test/apps-test.js index e23ee2e62..b11728c18 100644 --- a/src/routes/test/apps-test.js +++ b/src/routes/test/apps-test.js @@ -146,12 +146,16 @@ function setup(done) { callback(null); }); - }, function (callback) { + }, + + function (callback) { token_1 = tokendb.generateToken(); // HACK to get a token for second user (passwords are generated and the user should have gotten a password setup link...) tokendb.add(token_1, tokendb.PREFIX_USER + USERNAME_1, 'test-client-id', Date.now() + 100000, '*', callback); - } + }, + + settings.setDnsConfig.bind(null, { provider: 'route53', accessKeyId: 'accessKeyId', secretAccessKey: 'secretAccessKey', endpoint: 'http://localhost:5353' }), ], done); } @@ -590,8 +594,6 @@ describe('App installation', function () { apiHockServer = http.createServer(apiHockInstance.handler).listen(port, callback); }, - settings.setDnsConfig.bind(null, { provider: 'route53', accessKeyId: 'accessKeyId', secretAccessKey: 'secretAccessKey', endpoint: 'http://localhost:5353' }), - function (callback) { awsHockInstance .get('/2013-04-01/hostedzone')