Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

Nodes default-maxBuffer is too small for larger testsuites . Make use… #274

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions .testing/chimp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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,
},
});
};

Expand All @@ -37,7 +42,10 @@ var startChimpCi = function() {
processes.start({
name: 'Chimp CI',
command: command,
options: { cwd: baseDir }
options: {
maxBuffer,
cwd: baseDir,
},
});
};

Expand All @@ -56,4 +64,4 @@ if (isCi) {
startTestApp(startChimpWatch, {
MONGO_URL: 'mongodb://localhost:3001/chimp_db'
});
}
}