Skip to content

Commit

Permalink
test: update tap, add more slack in timing test
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Jun 6, 2017
1 parent f23cecd commit c65bd6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -16,7 +16,7 @@
"repository": "git://github.com/isaacs/node-lru-cache.git",
"devDependencies": {
"standard": "^5.4.1",
"tap": "^8.0.1"
"tap": "^10.3.3"
},
"license": "ISC",
"dependencies": {
Expand Down
6 changes: 3 additions & 3 deletions test/basic.js
Expand Up @@ -213,7 +213,7 @@ test('drop the old items', function (t) {
setTimeout(function () {
cache.set('b', 'b')
t.equal(cache.get('a'), 'A')
}, 25)
})

setTimeout(function () {
cache.set('c', 'C')
Expand All @@ -224,12 +224,12 @@ test('drop the old items', function (t) {
setTimeout(function () {
t.notOk(cache.get('b'))
t.equal(cache.get('c'), 'C')
}, 90)
}, 120)

setTimeout(function () {
t.notOk(cache.get('c'))
t.end()
}, 155)
}, 200)
})

test('manual pruning', function (t) {
Expand Down

0 comments on commit c65bd6f

Please sign in to comment.