Skip to content

VoiceStudio is the open-source, fully-local ElevenLabs alternative — voice cloning, voice design, video dubbing, dictation, transcription & audiobook creation in 646 languages.

test(updates): give the update settings async waits 5s on slow runners

velixio33b343f71d10
diff --git a/electron/src/renderer/src/features/settings/update-settings.test.tsx b/electron/src/renderer/src/features/settings/update-settings.test.tsx
index 7c87ef616..0d665476b 100644
--- a/electron/src/renderer/src/features/settings/update-settings.test.tsx
+++ b/electron/src/renderer/src/features/settings/update-settings.test.tsx
@@ -1,4 +1,12 @@
-import { act, cleanup, fireEvent, render, screen, waitFor } from '@testing-library/react';
+import {
+ act,
+ cleanup,
+ configure,
+ fireEvent,
+ render,
+ screen,
+ waitFor,
+} from '@testing-library/react';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';
import type { UpdateState } from '../../../../preload/index.d';
@@ -62,6 +70,10 @@ vi.mock('react-i18next', () => ({ useTranslation: () => ({ t: (key: string) => k
import { UpdateSettings } from './update-settings';
+// The release workflow runs this on shared Linux runners, where the default 1s
+// wait for the async update flow timed out once (v0.5.7-beta.1 packaging).
+configure({ asyncUtilTimeout: 5_000 });
+
function renderSettings() {
const client = new QueryClient({ defaultOptions: { queries: { retry: false } } });
return render(