Skip to content

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
elprans committed Jan 21, 2025
1 parent 130d9ee commit cc64295
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/driver/test/transaction.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,18 @@ function* all_options(): Generator<
void,
void
> {
const levels = [undefined, IsolationLevel.Serializable];
const levels = [
undefined,
IsolationLevel.Serializable,
IsolationLevel.RepeatableRead,
];
const booleans = [undefined, true, false];
for (const isolation of levels) {
for (const readonly of booleans) {
for (const deferred of booleans) {
yield [isolation, readonly, deferred];
if (isolation != IsolationLevel.RepeatableRead || readonly) {
yield [isolation, readonly, deferred];
}
}
}
}
Expand Down

0 comments on commit cc64295

Please sign in to comment.