Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "lockfile", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"main": "lockfile.js", | ||
@@ -10,7 +10,9 @@ "directories": { | ||
"devDependencies": { | ||
"tap": "~0.2.5", | ||
"tap": "^7.1.2", | ||
"touch": "0" | ||
}, | ||
"scripts": { | ||
"test": "tap test/*.js" | ||
"test": "tap test/*.js --cov", | ||
"changelog": "bash gen-changelog.sh", | ||
"postversion": "npm run changelog && git add CHANGELOG.md && git commit -m 'update changelog - '${npm_package_version}" | ||
}, | ||
@@ -17,0 +19,0 @@ "repository": { |
@@ -20,3 +20,3 @@ // In these tests, we do the following: | ||
var EXPECTTIME = (RETRYWAIT * RETRIES) + (WAIT * (RETRIES + 1)) | ||
var TOOLONG = EXPECTTIME * 1.1 | ||
var TOOLONG = EXPECTTIME * 1.5 | ||
@@ -37,4 +37,6 @@ test('setup', function (t) { | ||
}, 2000) | ||
timer.unref() | ||
if (timer.unref) | ||
timer.unref() | ||
var start = Date.now() | ||
@@ -61,5 +63,9 @@ lockFile.lock('file.lock', { | ||
t.end() | ||
setTimeout(function() { | ||
var timer = setTimeout(function() { | ||
process.exit(1) | ||
}, 500).unref() | ||
}, 500) | ||
if (timer.unref) | ||
timer.unref() | ||
else | ||
clearTimeout(timer) | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26293
13
672