From ee7919d1149eeee15d006a3b1bdd8618f3168b8f Mon Sep 17 00:00:00 2001 From: thebarty <3011897+thebarty@users.noreply.github.com> Date: Thu, 20 Sep 2018 00:36:26 +0200 Subject: [PATCH] Nodes default-maxBuffer is too small for larger testsuites . Make users aware of it and set it bigger --- .testing/chimp.js | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.testing/chimp.js b/.testing/chimp.js index e1d7979a..15e333f7 100644 --- a/.testing/chimp.js +++ b/.testing/chimp.js @@ -9,15 +9,17 @@ var source = require(srcDir + '/node_modules/shell-source'); var processes = require('./processes.js'); var isCi = process.argv[2] === '--ci'; +const maxBuffer = 100*1024*1024 // 100 mb buffer (overwrite default of 200*1024) var startTestApp = function(onStarted, options) { return processes.start({ name: 'Test App', command: 'meteor --port=3100', waitForMessage: 'App running at: http://localhost:3100', options: { + maxBuffer, cwd: srcDir, - env: extend(process.env, options) - } + env: extend(process.env, options), + }, }, function() { console.log("Test app is running …"); onStarted(); @@ -28,7 +30,10 @@ var startChimpWatch = function() { processes.start({ name: 'Chimp Watch', command: 'chimp --ddp=http://localhost:3100 --watch --path=tests --mocha --chai --browser=chrome', - options: { cwd: baseDir } + options: { + maxBuffer, + cwd: baseDir, + }, }); }; @@ -37,7 +42,10 @@ var startChimpCi = function() { processes.start({ name: 'Chimp CI', command: command, - options: { cwd: baseDir } + options: { + maxBuffer, + cwd: baseDir, + }, }); }; @@ -56,4 +64,4 @@ if (isCi) { startTestApp(startChimpWatch, { MONGO_URL: 'mongodb://localhost:3001/chimp_db' }); -} \ No newline at end of file +}