Skip to content

Commit e6f99df

Browse files
committed
test on osx
1 parent f5a5edd commit e6f99df

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
sudo: false
22
language: node_js
3+
os:
4+
- linux
5+
- osx
36
node_js:
47
- node
58
- "5"

test/WatchDetection.test.js

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,19 @@ describe("WatchDetection", function() {
2727
fs.writeFileSync(filePath, "require('./file2')", "utf-8");
2828
fs.writeFileSync(file2Path, "original", "utf-8");
2929
});
30-
after(function() {
31-
try {
32-
fs.unlinkSync(filePath);
33-
} catch(e) {}
34-
try {
35-
fs.unlinkSync(file2Path);
36-
} catch(e) {}
37-
try {
38-
fs.rmdirSync(fixturePath);
39-
} catch(e) {}
30+
after(function(done) {
31+
setTimeout(function() {
32+
try {
33+
fs.unlinkSync(filePath);
34+
} catch(e) {}
35+
try {
36+
fs.unlinkSync(file2Path);
37+
} catch(e) {}
38+
try {
39+
fs.rmdirSync(fixturePath);
40+
} catch(e) {}
41+
done();
42+
}, 100); // cool down a bit
4043
});
4144
it("should build the bundle correctly", function(done) {
4245
var compiler = webpack({

0 commit comments

Comments
 (0)