Skip to content

Commit

Permalink
Merge branch 'master' into rolling-timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
alanning committed Jan 17, 2014
2 parents 670ccb6 + 85ee7e3 commit 9acd62e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ spec/support/cache
spec/var
.DS_Store
npm-debug.log
*.swp
22 changes: 20 additions & 2 deletions spec/acceptance/test_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,25 @@ before(function(done){

beforeEach(function() {
// clear out the fake home directory
if (fs.existsSync(appHome))
wrench.rmdirSyncRecursive(appHome);
if (fs.existsSync(appHome)) {
// XXX: this is really nasty but it appears some process is not releasing
// files in time so sometimes this call fails with ENOTEMPTY:
//
// https://github.com/oortcloud/meteorite/issues/235
//
// Retrying a couple of times seems to work. Real solution is to figure
// out why process isn't being killed.
try {
wrench.rmdirSyncRecursive(appHome);
}
catch (ex) {
try {
wrench.rmdirSyncRecursive(appHome);
}
catch (ex2) {
wrench.rmdirSyncRecursive(appHome);
}
}
}
fs.mkdirSync(appHome);
});

0 comments on commit 9acd62e

Please sign in to comment.