Skip to content

Commit 3409d10

Browse files
committed
chore(test) Try and track down problem with API tests on Travis CI
1 parent be09d62 commit 3409d10

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/api/ControlAPISpec.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,13 @@ describe('original API', function () {
4040
async.each(fs.readdirSync(dataPath), function (file, callback) {
4141
var fname = dataPath + '/' + file;
4242
if (fs.statSync(fname).isFile()) {
43-
exec('mongoimport --db forms-ng_test --drop --collection ' + file.slice(0, 1) + 's --jsonArray < ' + fname, callback);
43+
exec('mongoimport --db forms-ng_test --drop --collection ' + file.slice(0, 1) + 's --jsonArray < ' + fname, function(error, stdout, stderr) {
44+
if (error !== null) {
45+
callback('Error executing ' + command + ' : ' + error + ' (Code = ' + error.code + ' ' + error.signal + ') : ' + stderr + ' : ' + stdout);
46+
} else {
47+
callback();
48+
}
49+
});
4450
}
4551
}, function (err) {
4652
if (err) {

0 commit comments

Comments
 (0)