From cc6429590ecba5283351a64a892ee451e4f9f89d Mon Sep 17 00:00:00 2001 From: Elvis Pranskevichus Date: Tue, 21 Jan 2025 14:43:11 -0800 Subject: [PATCH] Add a test --- packages/driver/test/transaction.test.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/driver/test/transaction.test.ts b/packages/driver/test/transaction.test.ts index d1e826cc8..055a10338 100644 --- a/packages/driver/test/transaction.test.ts +++ b/packages/driver/test/transaction.test.ts @@ -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]; + } } } }