From ee93f70dc3bc33a6588d3fdbcf1cc43a0c567469 Mon Sep 17 00:00:00 2001 From: Rob Wu Date: Fri, 26 Feb 2016 17:05:06 +0100 Subject: [PATCH] Increment threshold for memory failure on Node 0.x --- test/test-memory.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/test-memory.js b/test/test-memory.js index 6155796..3394945 100644 --- a/test/test-memory.js +++ b/test/test-memory.js @@ -93,7 +93,10 @@ describe('memory usage', function() { it('100 GET requests 50k', function(done) { // This test is just for comparison with the following tests. - performNRequests(100, 50, 550, done); + // On Node 0.10.x, the initial memory usage seems higher on Travis, so use + // a higher maximum value to avoid flaky tests. + var memMax = /^v0\./.test(process.version) ? 1200 : 550; + performNRequests(100, 50, memMax, done); }); // 100x 1k and 100x 50k for comparison.