Skip to content

Commit b4d6a72

Browse files
committed
Fixing possible race condition in node 6 & 7 where tmp dir was being removed during tests
1 parent 7102cfc commit b4d6a72

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/functional.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ describe('Functional tests using webpack', function() {
2929
// being functional tests, these can take quite long
3030
this.timeout(5000);
3131

32+
after(() => {
33+
testSetup.emptyTmpDir();
34+
});
35+
3236
describe('Basic scenarios', () => {
33-
beforeEach(() => {
34-
testSetup.emptyTmpDir();
35-
});
3637

3738
it('Builds a simple .js file + manifest.json', (done) => {
3839
const config = createWebpackConfig('web/build', 'dev');

0 commit comments

Comments
 (0)