Skip to content

Commit

Permalink
test: use both -r and --require in preload tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Trott committed May 28, 2015
1 parent 98649fd commit 753964e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/parallel/test-preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ var nodeBinary = process.argv[0];

var preloadOption = function(preloads) {
var option = '';
preloads.forEach(function(preload, index) {
// TODO: randomly pick -r or --require
option += '-r ' + preload + ' ';
preloads.forEach(function(preload) {
var optionString = ['-r', '--require'][Math.floor(Math.random()*2)];
option += optionString + ' ' + preload + ' ';
});
return option;
};
Expand Down

0 comments on commit 753964e

Please sign in to comment.