diff --git a/test/broken-under-nyc-and-travis/lifecycle-path.js b/test/tap/lifecycle-path.js similarity index 96% rename from test/broken-under-nyc-and-travis/lifecycle-path.js rename to test/tap/lifecycle-path.js index 0cfa5d3d62c5e..70fb839197191 100644 --- a/test/broken-under-nyc-and-travis/lifecycle-path.js +++ b/test/tap/lifecycle-path.js @@ -2,7 +2,6 @@ var fs = require('fs') var path = require('path') var mkdirp = require('mkdirp') -var osenv = require('osenv') var rimraf = require('rimraf') var which = require('which') var test = require('tap').test @@ -10,7 +9,7 @@ var test = require('tap').test var common = require('../common-tap.js') var isWindows = require('../../lib/utils/is-windows.js') -var pkg = path.resolve(__dirname, 'lifecycle-path') +var pkg = common.pkg var PATH if (isWindows) { @@ -26,8 +25,6 @@ var systemNode = which.sync('node', { nothrow: true, path: PATH }) // the path to the system wide node (null if none) test('setup', function (t) { - cleanup() - mkdirp.sync(pkg) fs.writeFileSync( path.join(pkg, 'package.json'), JSON.stringify({}, null, 2) @@ -211,13 +208,3 @@ function checkPath (testconfig, t) { t.end() }) } - -test('cleanup', function (t) { - cleanup() - t.end() -}) - -function cleanup () { - process.chdir(osenv.tmpdir()) - rimraf.sync(pkg) -}