Skip to content

Commit

Permalink
Slow down tests a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
dominickp committed Nov 8, 2016
1 parent b54f292 commit 7a53f19
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
6 changes: 5 additions & 1 deletion test/job/fileJob.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ describe('FileJob', function() {

afterEach("remove temporary file", function(done){
tempFolderCleanupCallback();
done();
if(process.env.NODE_ENV === "TEST") {
setTimeout(done, 500);
} else {
done();
}
});

// Function to add a new job to the watched nest
Expand Down
6 changes: 5 additions & 1 deletion test/job/folderJob.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ describe('FolderJob', function() {

afterEach("remove temporary file", function(done){
tempFolderCleanupCallback();
done();
if(process.env.NODE_ENV === "TEST") {
setTimeout(done, 500);
} else {
done();
}
});

// Function to add a new job to the watched nest
Expand Down
6 changes: 5 additions & 1 deletion test/job/job.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ describe('Job', function() {

afterEach("remove temporary file", function(done){
tempFolderCleanupCallback();
done();
if(process.env.NODE_ENV === "TEST") {
setTimeout(done, 500);
} else {
done();
}
});

// Function to add a new job to the watched nest
Expand Down
6 changes: 5 additions & 1 deletion test/nest/folder.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ describe('Nest Folder', function() {

afterEach(function(done) {
tmpobj.removeCallback();
done();
if(process.env.NODE_ENV === "TEST") {
setTimeout(done, 500);
} else {
done();
}
});

describe('Loading', function() {
Expand Down

0 comments on commit 7a53f19

Please sign in to comment.