Permalink
Browse files

Fetch seed from env if none is passed to cli

  • Loading branch information...
davidmerfield committed Nov 20, 2018
1 parent 26de8a7 commit 83ef6106929140011ef80b88edd7310998fd7fd0
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/index.js
@@ -35,7 +35,7 @@ if (process.argv[2]) {
if (process.argv[3]) {
seed = process.argv[3];
} else {
seed = Math.floor(Math.random() * 100000) + "";
seed = process.env.BLOT_TESTS_SEED || Math.floor(Math.random() * 100000) + "";
console.log(
'If you want your own seed run "npm test {path_to_specs} {seed}"'
);

0 comments on commit 83ef610

Please sign in to comment.