Skip to content

Commit d7a04e7

Browse files
committed
test: stabilize slow integration timeouts
1 parent 6b0dbea commit d7a04e7

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

test/rotation-integration.test.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -286,15 +286,15 @@ describe("Multi-Account Rotation Integration", () => {
286286
});
287287
});
288288

289-
describe("Storage mutex (file locking)", () => {
290-
it("concurrent saves complete without corruption", async () => {
291-
const storage = createStorageFromTestAccounts(TEST_ACCOUNTS.slice(0, 3));
292-
const manager = new AccountManager(undefined, storage);
293-
294-
const saves = Array.from({ length: 10 }, () => manager.saveToDisk());
295-
await Promise.all(saves);
296-
});
297-
});
289+
describe("Storage mutex (file locking)", () => {
290+
it("concurrent saves complete without corruption", async () => {
291+
const storage = createStorageFromTestAccounts(TEST_ACCOUNTS.slice(0, 3));
292+
const manager = new AccountManager(undefined, storage);
293+
294+
const saves = Array.from({ length: 10 }, () => manager.saveToDisk());
295+
await Promise.all(saves);
296+
}, 15_000);
297+
});
298298

299299
describe("Debounced save", () => {
300300
it("saveToDiskDebounced does not throw", () => {

test/settings-hub-utils.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ describe("settings-hub utility coverage", () => {
232232
expect(() => api.clampBackendNumber("unknown-setting", 5)).toThrow(
233233
"Unknown backend numeric setting key",
234234
);
235-
});
235+
}, 15_000);
236236

237237
it("formats layout mode labels", async () => {
238238
const api = await loadSettingsHubTestApi();

0 commit comments

Comments
 (0)