Skip to content

Commit

Permalink
Done callback waits for unlink in testRepoTokenDetection to prevent r…
Browse files Browse the repository at this point in the history
…ace condition (#179)
  • Loading branch information
Tristan Davey authored and nickmerwin committed May 1, 2018
1 parent 18c71c2 commit aa8c257
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/getOptions.js
Expand Up @@ -260,8 +260,7 @@ var testRepoTokenDetection = function(sut, done) {
options.service_name.should.equal(service_name);
}
if (synthetic)
fs.unlink(file);
done();
fs.unlink(file, done);
});
};

Expand Down

0 comments on commit aa8c257

Please sign in to comment.