Skip to content

Commit

Permalink
Callback operation errors should always propagate to withTransaction
Browse files Browse the repository at this point in the history
  • Loading branch information
jmikola committed Feb 14, 2024
1 parent f259730 commit a386623
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/unified-test-format/unified-test-format.md
Expand Up @@ -1706,6 +1706,11 @@ testing, this parameter is expressed as an array of [operation](#operation) obje
[test.operations](#test_operations)). Test runners MUST evaluate error and result assertions when executing these
operations in the callback.

Test runners MUST allow any errors from the callback operation(s) to propagate to `withTransaction`, irrespective of
[ignoreResultAndError](#operation_ignoreResultAndError) or [expectError](#operation_expectError). For example, if a
callback operation raises an error, it should be possible to assert that error at both the callback operation and
`withTransaction` level.

### Bucket Operations

These operations and their arguments may be documented in the following specifications:
Expand Down Expand Up @@ -3311,6 +3316,8 @@ other specs *and* collating spec changes developed in parallel or during the sam

## Changelog

- 2024-02-14: Clarify that errors raised from callback operations should always propagate to `withTransaction`.

- 2024-02-12: Clarify that `targetedFailPoint` should only be used when `useMultipleMongoses` is true and not on
load-balanced topologies.

Expand Down

0 comments on commit a386623

Please sign in to comment.