-
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.
Add tx termination test based on failed tx.run
- Loading branch information
1 parent
a65e34f
commit b00eda3
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
tests/stub/tx_run/scripts/tx_successful_and_failing_streams.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,18 @@ | ||
!: BOLT 4.4 | ||
|
||
A: HELLO {"{}": "*"} | ||
*: RESET | ||
C: BEGIN {"{}": "*"} | ||
S: SUCCESS {} | ||
C: RUN "RETURN 1 AS n" {"{}": "*"} {"{}": "*"} | ||
PULL {"n": {"Z": "*"}, "[qid]": -1} | ||
S: SUCCESS {"fields": ["n"], "qid": 1} | ||
RECORD [1] | ||
RECORD [2] | ||
SUCCESS {"has_more": true, "type": "r"} | ||
C: RUN "invalid" {"{}": "*"} {"{}": "*"} | ||
PULL {"n": {"Z": "*"}, "[qid]": -1} | ||
S: FAILURE {"code": "Neo.ClientError.Statement.SyntaxError", "message": "Invalid input"} | ||
IGNORED | ||
*: 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