Skip to content

Commit fb07a87

Browse files
Allow discard in 4.1 writer_yielding_db_unavailable_error_on_rollback (#367)
* Allow discard in 4.1 writer_yielding_db_unavailable_error_on_rollback * Update tests/stub/routing/scripts/v4x1_no_routing/writer_yielding_db_unavailable_error_on_rollback.script Co-authored-by: Robsdedude <dev@rouvenbauer.de> Co-authored-by: Robsdedude <dev@rouvenbauer.de>
1 parent 7048ba5 commit fb07a87

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/stub/routing/scripts/v4x1_no_routing/writer_yielding_db_unavailable_error_on_rollback.script

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@ C: BEGIN {"db": "adb"}
88
S: SUCCESS {}
99
C: RUN "RETURN 1 as n" {} {}
1010
S: SUCCESS {"fields": ["n"]}
11-
C: PULL {"n": 1000}
12-
S: RECORD [1]
13-
SUCCESS {"type": "r"}
11+
{{
12+
C: PULL {"n": 1000}
13+
S: RECORD [1]
14+
----
15+
C: DISCARD {"n": -1}
16+
}}
17+
S: SUCCESS {"type": "r"}
1418
C: ROLLBACK
1519
S: FAILURE {"code": "Neo.TransientError.General.DatabaseUnavailable", "message": "Unable to rollback"}
1620
+: RESET

0 commit comments

Comments
 (0)