test: fix pummel/test-net-connect-memleak
authorBen Noordhuis <info@bnoordhuis.nl>
Thu, 1 Aug 2013 14:00:40 +0000 (16:00 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Thu, 1 Aug 2013 14:07:46 +0000 (16:07 +0200)
commit98db7babccfbf2abe5de4fee6bcaa97aa7ebfe75
tree331c4a8c24d1f4cc16a038fcee1d76e52e0d35d4
parentfc6f8a69438d45640d4d0a76633b57965c1f843a
test: fix pummel/test-net-connect-memleak

* Run the garbage collector before creating the big array. It doesn't
  matter now but if in the future something in node.js core creates
  a lot of reclaimable garbage, that will break the test's expectation.

* The first RSS check was being done too late. The garbage collector
  might have run before the check, throwing off the 'reclaimed memory'
  calculation.

* Due to changes in how V8 represents the big array internally, the
  actual memory usage is just below 256 MB on x64. Update the test's
  expectation.
test/pummel/test-net-connect-memleak.js