summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/unit/kv_test.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/cli/tests/unit/kv_test.ts b/cli/tests/unit/kv_test.ts
index da5dba6af..25abf4cde 100644
--- a/cli/tests/unit/kv_test.ts
+++ b/cli/tests/unit/kv_test.ts
@@ -1819,6 +1819,16 @@ Deno.test({
},
});
+Deno.test({
+ name: "queue graceful close",
+ async fn() {
+ const db: Deno.Kv = await Deno.openKv(":memory:");
+ const listener = db.listenQueue((_msg) => {});
+ db.close();
+ await listener;
+ },
+});
+
dbTest("atomic operation is exposed", (db) => {
assert(Deno.AtomicOperation);
const ao = db.atomic();