diff --git a/test/support/prepare.js b/test/support/prepare.js index a6b83965a5..afa997821d 100644 --- a/test/support/prepare.js +++ b/test/support/prepare.js @@ -15,7 +15,7 @@ const npmrc = [ fs.writeFileSync(join(tmpPath, '.npmrc'), npmrc, 'utf-8') module.exports = function prepare (pkg) { - const pkgTmpPath = join(tmpPath, Math.random().toString()) + const pkgTmpPath = join(tmpPath, Number(new Date()).toString()) mkdirp.sync(pkgTmpPath) const json = JSON.stringify(pkg || {}) fs.writeFileSync(join(pkgTmpPath, 'package.json'), json, 'utf-8')