-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes the protocol: * tx timeout in protocol is now an optional field
- Loading branch information
1 parent
fb07a87
commit dc4c783
Showing
14 changed files
with
144 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
tests/stub/session_run_parameters/scripts/timeout_-1.script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
!: BOLT 4.4 | ||
|
||
A: HELLO {"{}": "*"} | ||
*: RESET | ||
# We expect the driver to not even try this. So should it do so nonetheless, | ||
# we will let is pass to not cause any error. The error should be generated | ||
# inside the driver. | ||
C: BEGIN {"[tx_timeout]": "*"} | ||
S: SUCCESS {"fields": ["n"]} | ||
C: PULL {"n": 1000} | ||
S: RECORD [1] | ||
SUCCESS {"type": "w"} | ||
*: RESET | ||
?: GOODBYE |
11 changes: 11 additions & 0 deletions
11
tests/stub/session_run_parameters/scripts/timeout_0.script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
!: BOLT 4.4 | ||
|
||
A: HELLO {"{}": "*"} | ||
*: RESET | ||
C: RUN "RETURN 1 as n" {} {"tx_timeout": 0} | ||
S: SUCCESS {"fields": ["n"]} | ||
C: PULL {"n": 1000} | ||
S: RECORD [1] | ||
SUCCESS {"type": "w"} | ||
*: RESET | ||
?: GOODBYE |
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions
11
tests/stub/session_run_parameters/scripts/timeout_null.script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
!: BOLT 4.4 | ||
|
||
A: HELLO {"{}": "*"} | ||
*: RESET | ||
C: RUN "RETURN 1 as n" {} {"[tx_timeout]": null} | ||
S: SUCCESS {"fields": ["n"]} | ||
C: PULL {"n": 1000} | ||
S: RECORD [1] | ||
SUCCESS {"type": "w"} | ||
*: RESET | ||
?: GOODBYE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
!: BOLT 4.4 | ||
|
||
A: HELLO {"{}": "*"} | ||
*: RESET | ||
# We expect the driver to not even try this. So should it do so nonetheless, | ||
# we will let is pass to not cause any error. The error should be generated | ||
# inside the driver. | ||
C: BEGIN {"[tx_timeout]": "*"} | ||
S: SUCCESS {} | ||
C: RUN "RETURN 1 as n" {} {} | ||
S: SUCCESS {"fields": ["n"]} | ||
C: PULL {"n": 1000} | ||
S: SUCCESS {"type": "r"} | ||
C: COMMIT | ||
S: SUCCESS {} | ||
*: RESET | ||
?: GOODBYE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
!: BOLT 4.4 | ||
|
||
A: HELLO {"{}": "*"} | ||
*: RESET | ||
C: BEGIN {"tx_timeout": 0} | ||
S: SUCCESS {} | ||
C: RUN "RETURN 1 as n" {} {} | ||
S: SUCCESS {"fields": ["n"]} | ||
C: PULL {"n": 1000} | ||
S: SUCCESS {"type": "r"} | ||
C: COMMIT | ||
S: SUCCESS {} | ||
*: RESET | ||
?: GOODBYE |
File renamed without changes.
File renamed without changes.
14 changes: 14 additions & 0 deletions
14
tests/stub/tx_begin_parameters/scripts/timeout_null.script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
!: BOLT 4.4 | ||
|
||
A: HELLO {"{}": "*"} | ||
*: RESET | ||
C: BEGIN {"[tx_timeout]": null} | ||
S: SUCCESS {} | ||
C: RUN "RETURN 1 as n" {} {} | ||
S: SUCCESS {"fields": ["n"]} | ||
C: PULL {"n": 1000} | ||
S: SUCCESS {"type": "r"} | ||
C: COMMIT | ||
S: SUCCESS {} | ||
*: RESET | ||
?: GOODBYE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters