Skip to content

Commit 37e6382

Browse files
committed
Properly wait for Neo4j in gulp pipeline
Tasks to start and stop Neo4j are synchronous that is why they an need additional callback to report completion to gulp.
1 parent 6f2f3ae commit 37e6382

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

gulpfile.babel.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,12 @@ gulp.task('set', function() {
233233

234234
var neo4jHome = path.resolve('./build/neo4j');
235235

236-
gulp.task('start-neo4j', function () {
236+
gulp.task('start-neo4j', function (done) {
237237
sharedNeo4j.start(neo4jHome, process.env.NEOCTRL_ARGS);
238+
done();
238239
});
239240

240-
gulp.task('stop-neo4j', function () {
241+
gulp.task('stop-neo4j', function (done) {
241242
sharedNeo4j.stop(neo4jHome);
243+
done();
242244
});

0 commit comments

Comments
 (0)