Skip to content

Commit a238011

Browse files
Peter Wilhelmsson2hdddg
authored andcommitted
Fixed stub scripts broken on boltkit 4.1
1 parent 2a2cc09 commit a238011

6 files changed

+8
-8
lines changed

test/internal/bolt-stub.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ class SupportedBoltStub extends UnsupportedBoltStub {
5353
}
5454

5555
start (script, port) {
56-
const boltStub = this._childProcess.spawn('bolt', [
56+
const boltStub = this._childProcess.spawn('python3', [
57+
'-m',
58+
'boltkit',
5759
'stub',
5860
'-v',
5961
'-l',
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
!: BOLT 3
22
!: AUTO HELLO
3+
!: AUTO RESET
34
!: AUTO GOODBYE
45

56
C: RUN "CALL dbms.cluster.routing.getRoutingTable($context)" {"context": {}} {}
67
PULL_ALL
78
S: SUCCESS {"fields": ["ttl", "servers"]}
89
RECORD [9223372036854775807, [{"addresses": ["127.0.0.1:9001"],"role": "WRITE"}, {"addresses": ["127.0.0.1:9002","127.0.0.1:9003"], "role": "READ"},{"addresses": ["127.0.0.1:9001","127.0.0.1:9002","127.0.0.1:9003"], "role": "ROUTE"}]]
910
SUCCESS {}
10-
C: RESET
11-
S: SUCCESS {}
1211
<EXIT>

test/resources/boltstub/v3/acquire_endpoints_three_servers_set_2.script

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
!: BOLT 3
22
!: AUTO HELLO
3-
!: AUTO RESET
43
!: AUTO GOODBYE
54

65
C: RUN "CALL dbms.cluster.routing.getRoutingTable($context)" {"context": {}} {}

test/resources/boltstub/v3/acquire_endpoints_three_servers_set_3.script

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,4 @@ C: RUN "CALL dbms.cluster.routing.getRoutingTable($context)" {"context": {}} {}
77
S: SUCCESS {"fields": ["ttl", "servers"]}
88
RECORD [9223372036854775807, [{"addresses": ["127.0.0.1:9009"],"role": "WRITE"}, {"addresses": ["127.0.0.1:9002","127.0.0.1:9003"], "role": "READ"},{"addresses": ["127.0.0.1:9001","127.0.0.1:9002","127.0.0.1:9003"], "role": "ROUTE"}]]
99
SUCCESS {}
10-
C: RESET
11-
S: SUCCESS {}
1210
<EXIT>
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
!: BOLT 3
1+
!: AUTO GOODBYE
2+
!: BOLT 3
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
!: BOLT 4
1+
!: AUTO GOODBYE
2+
!: BOLT 4

0 commit comments

Comments
 (0)