worksmith_etcd
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "worksmith_etcd", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Etcd activites for worksmith", | ||
@@ -27,3 +27,3 @@ "main": "index.js", | ||
"node-uuid": "^1.4.3", | ||
"worksmith": "^0.1.0" | ||
"worksmith": "^0.1.8" | ||
}, | ||
@@ -30,0 +30,0 @@ "devDependencies": { |
@@ -21,3 +21,3 @@ var debug = require('debug')('worksmith:tasks:etcd:lock') | ||
if (err) return done(err) | ||
done(null, { key: key, value: value }) | ||
done(null, { key: key, value: value, ttl: ttl }) | ||
}) | ||
@@ -24,0 +24,0 @@ } |
@@ -14,3 +14,3 @@ module.exports = function(etcd, _assert) { | ||
assert.ifError(err) | ||
assert.ok(result) | ||
assert.ok(result, 'Was not locked') | ||
next() | ||
@@ -17,0 +17,0 @@ }) |
@@ -66,2 +66,4 @@ var worksmith = require('worksmith') | ||
it('should default the lock value to a uuid', function(done) { | ||
@@ -134,2 +136,3 @@ | ||
value: 'foo', | ||
ttl: 1, | ||
resultTo: 'lock' | ||
@@ -144,2 +147,3 @@ }) | ||
assert.equal(ctx.lock.value, 'foo') | ||
assert.equal(ctx.lock.ttl, 1) | ||
done() | ||
@@ -146,0 +150,0 @@ }) |
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
20596
15
455
Updatedworksmith@^0.1.8