From 416cd00dcb522130597d92e30e130a46217bff6d Mon Sep 17 00:00:00 2001 From: Kasper Peulen Date: Wed, 14 Aug 2024 15:49:22 +0200 Subject: [PATCH] Yeah... don't look at this --- .github/workflows/tests-unit.yml | 2 +- .../server-channel/file-search-channel.test.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests-unit.yml b/.github/workflows/tests-unit.yml index 8957be007308..d50dc7efdf27 100644 --- a/.github/workflows/tests-unit.yml +++ b/.github/workflows/tests-unit.yml @@ -26,7 +26,7 @@ jobs: run: yarn task --task compile --start-from=auto - name: Install Playwright Dependencies - run: yarn exec playwright install chromium --with-deps + run: cd code && yarn exec playwright install chromium --with-deps - name: test run: yarn test diff --git a/code/core/src/core-server/server-channel/file-search-channel.test.ts b/code/core/src/core-server/server-channel/file-search-channel.test.ts index a0647d564370..64728b142e88 100644 --- a/code/core/src/core-server/server-channel/file-search-channel.test.ts +++ b/code/core/src/core-server/server-channel/file-search-channel.test.ts @@ -39,7 +39,7 @@ describe('file-search-channel', () => { const searchResultChannelListener = vi.fn(); describe('initFileSearchChannel', async () => { - it('should emit search result event with the search result', { timeout: 5000 }, async () => { + it('should emit search result event with the search result', { timeout: 10000 }, async () => { const mockOptions = {}; const data = { searchQuery: 'es-module' }; @@ -52,7 +52,7 @@ describe('file-search-channel', () => { } satisfies RequestData); await vi.waitFor(() => expect(searchResultChannelListener).toHaveBeenCalled(), { - timeout: 5000, + timeout: 8000, }); expect(searchResultChannelListener).toHaveBeenCalledWith({ @@ -98,7 +98,7 @@ describe('file-search-channel', () => { it( 'should emit search result event with an empty search result', - { timeout: 5000 }, + { timeout: 10000 }, async () => { const mockOptions = {}; const data = { searchQuery: 'no-file-for-search-query' }; @@ -116,7 +116,7 @@ describe('file-search-channel', () => { expect(searchResultChannelListener).toHaveBeenCalled(); }, { - timeout: 5000, + timeout: 8000, } );