aboutsummaryrefslogtreecommitdiffstats
path: root/RPCTests/modules/startnode.js
diff options
context:
space:
mode:
authorDimitry <winsvega@mail.ru>2017-01-28 00:31:19 +0800
committerDimitry <winsvega@mail.ru>2017-01-28 00:31:19 +0800
commitea7e06b2970a01cd11b3a062425f5c5cafc19ee7 (patch)
tree82f0dad0a0c0c37591e8c8d542710b8d909f086d /RPCTests/modules/startnode.js
parentbc8ad7422d32a940bab194173083a684adcc2706 (diff)
downloaddexon-tests-ea7e06b2970a01cd11b3a062425f5c5cafc19ee7.tar.gz
dexon-tests-ea7e06b2970a01cd11b3a062425f5c5cafc19ee7.tar.zst
dexon-tests-ea7e06b2970a01cd11b3a062425f5c5cafc19ee7.zip
rpc tests on js
Diffstat (limited to 'RPCTests/modules/startnode.js')
-rw-r--r--RPCTests/modules/startnode.js27
1 files changed, 0 insertions, 27 deletions
diff --git a/RPCTests/modules/startnode.js b/RPCTests/modules/startnode.js
deleted file mode 100644
index f0877b065..000000000
--- a/RPCTests/modules/startnode.js
+++ /dev/null
@@ -1,27 +0,0 @@
-function startNode (nodeExec, dataDir, genesisPath, listeningPort)
-{
- var spawn = require('child_process').spawn
- var options = [
- '--private', 'privatechain',
- '-d', dataDir,
- '--config', genesisPath,
- '--ipcpath', dataDir + '/geth.ipc',
- '--ipc',
- '--listen', listeningPort,
- '--test'
- ]
- console.log('starting node')
- console.log(nodeExec + ' ' + options.join(' '))
- var node = spawn(nodeExec, options)
- node.stdout.on('data', (data) => {
- console.log(`stdout: ${data}`)
- })
- node.stderr.on('data', (data) => {
- console.log(`stderr: ${data}`)
- })
- node.on('close', (code) => {
- console.log(`child process exited with code ${code}`)
- })
-}
-
-module.exports = startNode