diff options
author | Rebecca Turner <me@re-becca.org> | 2017-02-23 03:32:14 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2017-02-24 02:56:11 +0300 |
commit | 7ac9265c56b4d9eeaca6fcfb29513f301713e7bb (patch) | |
tree | 4e0ee680c4d1f2a1cb4c9bb59e57934ae3703b61 /test | |
parent | 85a36efdac0c24501876875cb9ad40292024e0b0 (diff) |
test: avoid tearDown in add-remote-git-submodule to work w/ tap@10
Diffstat (limited to 'test')
-rw-r--r-- | test/tap/add-remote-git-submodule.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/tap/add-remote-git-submodule.js b/test/tap/add-remote-git-submodule.js index f4a51b4f6..86fcaa0ee 100644 --- a/test/tap/add-remote-git-submodule.js +++ b/test/tap/add-remote-git-submodule.js @@ -69,13 +69,11 @@ test('clean', function (t) { }) function bootstrap (t) { + process.chdir(osenv.tmpdir()) + rimraf.sync(pkg) mkdirp.sync(pkg) process.chdir(pkg) fs.writeFileSync('package.json', pjParent) - t.tearDown(function () { - process.chdir(osenv.tmpdir()) - rimraf.sync(pkg) - }) } function setup (cb) { @@ -142,4 +140,5 @@ function setup (cb) { function cleanup () { process.chdir(osenv.tmpdir()) rimraf.sync(repos) + rimraf.sync(pkg) } |