Skip to content

Commit 2cf85f5

Browse files
committed
Delete smoke KV entries directly
Delete each smoke harness KV entry as it is listed instead of collecting keys first. The harness still clears the full dedicated MemoryKvStore so /_test/reset remains a clean federation-state reset. Resolves review comment: #750 (comment) Assisted-by: Codex:gpt-5.5
1 parent c85cc2a commit 2cf85f5

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

test/smoke/harness/federation.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ const federation = createFederation<void>({
1717
});
1818

1919
export async function resetFederationTestState(): Promise<void> {
20-
const keys = [];
2120
for await (const entry of kv.list()) {
22-
keys.push(entry.key);
21+
await kv.delete(entry.key);
2322
}
24-
await Promise.all(keys.map((key) => kv.delete(key)));
2523
}
2624

2725
federation

0 commit comments

Comments
 (0)