Browse files

fixed tests for floating buffer shrink

  • Loading branch information...
1 parent 4a8c98d commit eef436c408f5ddfb1ed74a21c668e6762f0a37df @einaros einaros committed Dec 27, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/BufferPool.test.js
View
6 test/BufferPool.test.js
@@ -46,7 +46,7 @@ describe('BufferPool', function() {
it('shinks the pool', function() {
var db = new BufferPool(1000);
var buf = db.get(2000);
- db.reset();
+ db.reset(true);
db.size.should.eql(1000);
})
it('shrinks the pool according to the shrinkStrategy', function() {
@@ -56,8 +56,8 @@ describe('BufferPool', function() {
return 0;
});
var buf = db.get(2000);
- db.reset();
+ db.reset(true);
db.size.should.eql(0);
})
})
-})
+})

0 comments on commit eef436c

Please sign in to comment.