Skip to content

Commit

Permalink
Lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexagon committed Jul 2, 2024
1 parent be3aa64 commit c830907
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/cli/loop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export async function main() {
let exit = false;
while (!exit) {
// Collect user input
let command;
let command: string | null;
if (CurrentRuntime === Runtime.Node) {
const rl = createInterface({
// @ts-ignore Cross-runtime
Expand All @@ -27,7 +27,7 @@ export async function main() {
output: process.stdout,
});
command = await new Promise((resolve) => {
rl.question(Colors.blue("> "), (cmd: unknown) => {
rl.question(Colors.blue("> "), (cmd: string) => {
rl.close();
resolve(cmd);
});
Expand Down
2 changes: 1 addition & 1 deletion test/kv.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ test("KV: sync event triggers and reflects data changes", async () => {
await kvStore1.set(["user", "age"], 42);

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

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

0 comments on commit c830907

Please sign in to comment.