Skip to content

Commit

Permalink
cool down a big
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed May 6, 2016
1 parent e5d2fec commit ab5c1cd
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions test/WatchDetection.test.js
Expand Up @@ -27,16 +27,18 @@ describe("WatchDetection", function() {
fs.writeFileSync(filePath, "require('./file2')", "utf-8");
fs.writeFileSync(file2Path, "original", "utf-8");
});
after(function() {
try {
fs.unlinkSync(filePath);
} catch(e) {}
try {
fs.unlinkSync(file2Path);
} catch(e) {}
try {
fs.rmdirSync(fixturePath);
} catch(e) {}
after(function(done) {
setTimeout(function() {
try {
fs.unlinkSync(filePath);
} catch(e) {}
try {
fs.unlinkSync(file2Path);
} catch(e) {}
try {
fs.rmdirSync(fixturePath);
} catch(e) {}
}, 100); // cool down a bit
});
it("should build the bundle correctly", function(done) {
var compiler = webpack({
Expand Down

0 comments on commit ab5c1cd

Please sign in to comment.