Skip to content

Commit c830907

Browse files
committed
Lint fix
1 parent be3aa64 commit c830907

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/cli/loop.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export async function main() {
1818
let exit = false;
1919
while (!exit) {
2020
// Collect user input
21-
let command;
21+
let command: string | null;
2222
if (CurrentRuntime === Runtime.Node) {
2323
const rl = createInterface({
2424
// @ts-ignore Cross-runtime
@@ -27,7 +27,7 @@ export async function main() {
2727
output: process.stdout,
2828
});
2929
command = await new Promise((resolve) => {
30-
rl.question(Colors.blue("> "), (cmd: unknown) => {
30+
rl.question(Colors.blue("> "), (cmd: string) => {
3131
rl.close();
3232
resolve(cmd);
3333
});

test/kv.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ test("KV: sync event triggers and reflects data changes", async () => {
402402
await kvStore1.set(["user", "age"], 42);
403403

404404
// Wait for the watchdog interval to ensure a sync occurs
405-
await new Promise((resolve) => setTimeout(resolve, SYNC_INTERVAL_MS * 2)); // Autosync should have happened within 2 sec
405+
await new Promise((resolve) => setTimeout(resolve, SYNC_INTERVAL_MS * 1.8)); // Autosync should have happened within 1.8 times the sync interval
406406

407407
// Assert that the second instance has the updated data
408408
assertEquals(syncedData.length, 2);

0 commit comments

Comments
 (0)