Skip to content

Commit 89d1acb

Browse files
committed
Fixed test so it runs on older plattforms
1 parent cec3096 commit 89d1acb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/v1/tck/steps/util.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,14 +360,15 @@ function restart(callback) {
360360
startDatabase();
361361
setTimeout(function () {
362362
callback();}, 5000);
363-
}, 500);
363+
}, 5000);
364364
}
365365

366366
function startDatabase() {
367367
if(isWin) {
368368
return runPowershell(neo4jHome + '/bin/neo4j.bat install-service;' + neo4jHome + '/bin/neo4j.bat start');
369369
} else {
370-
childProcess.execSync(neo4jHome + '/bin/neo4j start', function (err, stdout, stderr) {
370+
childProcess.exec(neo4jHome + '/bin/neo4j start', function (err, stdout, stderr) {
371+
console.log("starting");
371372
if (err) throw err;
372373
});
373374
}
@@ -377,7 +378,8 @@ function stopDatabase() {
377378
if(isWin) {
378379
runPowershell(neo4jHome + '/bin/neo4j.bat stop;' + neo4jHome + '/bin/neo4j.bat uninstall-service');
379380
} else {
380-
childProcess.execSync(neo4jHome + '/bin/neo4j stop', function (err, stdout, stderr) {
381+
childProcess.exec(neo4jHome + '/bin/neo4j stop', function (err, stdout, stderr) {
382+
console.log("stopping");
381383
if (err) throw err;
382384
});
383385
}

0 commit comments

Comments
 (0)