[Pkg-javascript-commits] [node-jsonstream] 88/214: optionally configure test
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Dec 1 12:58:43 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-jsonstream.
commit 2f556c458cdd1baa11f5f09ff3890713c6422b30
Author: Dominic Tarr <dominic.tarr at gmail.com>
Date: Mon Apr 1 15:36:35 2013 +0100
optionally configure test
---
test/gen.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/gen.js b/test/gen.js
index be72f36..9bafb2c 100644
--- a/test/gen.js
+++ b/test/gen.js
@@ -1,7 +1,7 @@
var fs = require('fs')
var JSONStream = require('../')
-var file = '/tmp/JSONStream-test-large.json'
-var size = 100000
+var file = process.argv[2] || '/tmp/JSONStream-test-large.json'
+var size = Number(process.argv[3] || 100000)
if(process.title != 'browser')
require('tape')('out of mem', function (t) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-jsonstream.git
More information about the Pkg-javascript-commits
mailing list