Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
test: override timeout multiplier from env in platformTimeout
Added for example for asan debug builds
when the default debug timeout isn't enough.
  • Loading branch information
skomski committed Jan 21, 2016
commit 619497a66b89cb095dbbbb36fa699f88668d260a
4 changes: 4 additions & 0 deletions test/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,10 @@ exports.platformTimeout = function(ms) {
newTimeout *= 5;
}

if (process.env.TEST_TIMEOUT_MULTIPLIER !== undefined) {
newTimeout = ms * process.env.TEST_TIMEOUT_MULTIPLIER;
}

return newTimeout;
};

Expand Down