From 2b4c166107af3235ea94dd90cc22c90d56582da4 Mon Sep 17 00:00:00 2001 From: Nico Flaig Date: Mon, 3 Jun 2024 17:34:53 +0200 Subject: [PATCH] test: increase timeout of keystore tests (#6846) * test: increase timeout of keystore cache tests * Increase hook timeout * Consistent number formatting --- .../test/unit/cmds/validator/keymanager/keystoreCache.test.ts | 2 +- .../cli/test/unit/validator/decryptKeystoreDefinitions.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/test/unit/cmds/validator/keymanager/keystoreCache.test.ts b/packages/cli/test/unit/cmds/validator/keymanager/keystoreCache.test.ts index 6164542a8d7f..4ac25dbadbc6 100644 --- a/packages/cli/test/unit/cmds/validator/keymanager/keystoreCache.test.ts +++ b/packages/cli/test/unit/cmds/validator/keymanager/keystoreCache.test.ts @@ -11,7 +11,7 @@ import {LocalKeystoreDefinition} from "../../../../../src/cmds/validator/keymana const numberOfSigners = 10; describe("keystoreCache", () => { - vi.setConfig({testTimeout: 10000, hookTimeout: 50000}); + vi.setConfig({testTimeout: 20_000, hookTimeout: 50_000}); let definitions: LocalKeystoreDefinition[]; let signers: SignerLocal[]; let secretKeys: Uint8Array[]; diff --git a/packages/cli/test/unit/validator/decryptKeystoreDefinitions.test.ts b/packages/cli/test/unit/validator/decryptKeystoreDefinitions.test.ts index 0f4173604405..8f1a82a55c3e 100644 --- a/packages/cli/test/unit/validator/decryptKeystoreDefinitions.test.ts +++ b/packages/cli/test/unit/validator/decryptKeystoreDefinitions.test.ts @@ -10,7 +10,7 @@ import {LocalKeystoreDefinition} from "../../../src/cmds/validator/keymanager/in import {LockfileError, unlockFilepath} from "../../../src/util/lockfile.js"; describe("decryptKeystoreDefinitions", () => { - vi.setConfig({testTimeout: 100_000}); + vi.setConfig({testTimeout: 100_000, hookTimeout: 50_000}); const signal = new AbortController().signal; const dataDir = path.join(testFilesDir, "decrypt-keystores-test");