Skip to content

Commit b8fba59

Browse files
committed
kv test migration
1 parent f9c2246 commit b8fba59

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

kv/tests/kv_test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2223,13 +2223,13 @@ Deno.test("kv - kv rejects in older servers", async () => {
22232223
});
22242224

22252225
Deno.test("kv - maxBucketSize doesn't override max_bytes", async () => {
2226-
let { ns, nc } = await _setup(
2227-
connect,
2228-
jetstreamServerConf({}),
2226+
const { ns, nc } = await _setup(
2227+
connect,
2228+
jetstreamServerConf({}),
22292229
);
2230-
const js = jetstream(nc);
2231-
const kv = await js.views.kv("A", { max_bytes: 100 });
2230+
const kvm = new Kvm(nc);
2231+
const kv = await kvm.create("A", { max_bytes: 100 });
22322232
const info = await kv.status();
22332233
assertEquals(info.max_bytes, 100);
22342234
await cleanup(ns, nc);
2235-
});
2235+
});

0 commit comments

Comments
 (0)