diff options
author | Igor Zinkovsky <igor@deno.com> | 2023-11-02 11:57:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-02 11:57:11 -0700 |
commit | 1d0856a4f1ef54ada163f1336100c45058e293d8 (patch) | |
tree | fe6e97f32805762fcf1ad618bd207fa744d61bb9 /cli/tests | |
parent | 41877a0b3735d52db8b4f5047b1d4d61e37ba585 (diff) |
feat(ext/kv): increase checks limit (#21055)
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/unit/kv_test.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cli/tests/unit/kv_test.ts b/cli/tests/unit/kv_test.ts index 0bfc75481..1677dd990 100644 --- a/cli/tests/unit/kv_test.ts +++ b/cli/tests/unit/kv_test.ts @@ -1165,6 +1165,10 @@ dbTest("operation size limit", async (db) => { _, i, ) => ["a", i]); + const invalidCheckKeys: Deno.KvKey[] = new Array(101).fill(0).map(( + _, + i, + ) => ["a", i]); const res = await db.getMany(lastValidKeys); assertEquals(res.length, 10); @@ -1206,7 +1210,7 @@ dbTest("operation size limit", async (db) => { await assertRejects( async () => { await db.atomic() - .check(...firstInvalidKeys.map((key) => ({ + .check(...invalidCheckKeys.map((key) => ({ key, versionstamp: null, }))) @@ -1218,7 +1222,7 @@ dbTest("operation size limit", async (db) => { .commit(); }, TypeError, - "too many checks (max 10)", + "too many checks (max 100)", ); const validMutateKeys: Deno.KvKey[] = new Array(1000).fill(0).map(( |