Skip to content

Commit

Permalink
chore: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AVVS committed Feb 9, 2019
1 parent 5b30abb commit 89abce9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/integration/lockIntegrationSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ describe('lock', () => {
await lock.acquire(key);

const ttl = await client.pttl(key);
assert(ttl > 9900 && ttl < 10000);
assert(ttl >= 9900 && ttl <= 10000);

await lock.extend(30000);
const nextTtl = await client.pttl(key);
assert(nextTtl > 29900 && nextTtl < 30000);
assert(nextTtl >= 29900 && nextTtl <= 30000);
});

it('throw an error if the key no longer belongs to the lock', async () => {
Expand Down

0 comments on commit 89abce9

Please sign in to comment.