Skip to content

Commit

Permalink
cleanup tmp dir after test
Browse files Browse the repository at this point in the history
  • Loading branch information
raszi committed Sep 27, 2015
1 parent acda3f4 commit 1345a23
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/dir-sync-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ vows.describe('Synchronous directory creation').addBatch({
'should return with a name': Test.assertName,
'should be a directory': function (err, name) {
_testDir(040700)({name:name});
// make sure that everything gets cleaned up
fs.unlinkSync(path.join(name, 'should-be-removed.file'));
fs.unlinkSync(path.join(name, 'symlinkme-target'));
fs.rmdirSync(name);
}
},

Expand Down

0 comments on commit 1345a23

Please sign in to comment.