Fix apps test

This commit is contained in:
Girish Ramakrishnan
2019-04-24 14:23:19 -07:00
parent d1582a435d
commit bd5bdfa8b5

View File

@@ -122,7 +122,10 @@ function checkAddons(appEntry, done) {
delete body.docker; // TODO fix this for some reason we cannot connect to the docker proxy on port 3003
for (var key in body) {
if (body[key] !== 'OK') return callback('Not done yet: ' + JSON.stringify(body));
if (body[key] !== 'OK') {
console.log('Not done yet: ' + JSON.stringify(body));
return callback('Not done yet: ' + JSON.stringify(body));
}
}
callback();
@@ -843,6 +846,7 @@ describe('App installation', function () {
it('logs - stdout and stderr', function (done) {
superagent.get(SERVER_URL + '/api/v1/apps/' + APP_ID + '/logs')
.query({ access_token: token })
.buffer(false)
.end(function (err, res) {
var data = '';
res.on('data', function (d) { data += d.toString('utf8'); });
@@ -863,7 +867,6 @@ describe('App installation', function () {
});
});
xit('logStream - stream logs', function (done) {
var options = {
port: config.get('port'), host: 'localhost', path: '/api/v1/apps/' + APP_ID + '/logstream?access_token=' + token,