Use datadir path relative to test file.
This commit is contained in:
parent
bcc3a4c2e1
commit
be5e885f96
@ -19,14 +19,16 @@ describe('Basic Functionality', function() {
|
|||||||
before(function(done) {
|
before(function(done) {
|
||||||
this.timeout(30000);
|
this.timeout(30000);
|
||||||
|
|
||||||
rimraf('./data/regtest', function(err) {
|
var datadir = __dirname + '/data';
|
||||||
|
|
||||||
|
rimraf(datadir + '/regtest', function(err) {
|
||||||
|
|
||||||
if (err) {
|
if (err) {
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
|
|
||||||
bitcoind = require('../').daemon({
|
bitcoind = require('../').daemon({
|
||||||
datadir: './data',
|
datadir: datadir,
|
||||||
network: 'regtest'
|
network: 'regtest'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user