Closed mike-marcacci closed 9 years ago
Thanks for this, @mike-marcacci. This is awesome!
However, I can't seem to get the tests to run. Could you give it a shot? You should be able to run the tests by running npm test
.
Hi @rakeshpai,
Here are my test results:
> redis-lock@0.0.8 test /Users/michaelmarcacci/Desktop/redis-lock
> ./node_modules/mocha/bin/mocha
\
.\.|
✔ 3 tests complete (1028ms)
Nice!
bump @rakeshpai @errorception Need to merge :+1: !
would like to see this pr been merged @rakeshpai
+1
I'd merge this, but something's screwed up with my setup, and I can't get the tests to run. If someone can confirm that all tests pass sufficiently, I'll merge this. I know that @mike-marcacci has already confirmed that the tests pass, but it would be great if I could get a second opinion.
@rakeshpai: I just pulled down mike-marcacci:master and ran npm test:
[~/dev/opensource/redis-lock (master)]$ npm test
> redis-lock@0.0.8 test /Users/rossk/dev/opensource/redis-lock
> ./node_modules/mocha/bin/mocha
...
✔ 3 tests complete (1087ms)
# ~/Repos/redis-lock on git:mike/master o $ npm test
> redis-lock@0.0.8 test /Users/loicmahieu/Repos/redis-lock
> ./node_modules/mocha/bin/mocha
...
✔ 3 tests complete (1133ms)
Is there any reason why tests are not run on travis ? It would be easier :)
Thanks for the help, everyone. I've merged this, and released this with a minor version bump. So, this patch has bumped up this package to 0.1.0.
Also, figured out the issue with my setup - turns out, my redis-server was too outdated.
Much simpler, a little faster, and a just a touch more reliable. Uses the slightly newer
SET key value PX 123 NX
syntax.