From f75dfdf1cfd7166c14fcbfef17064cdc8beb86e9 Mon Sep 17 00:00:00 2001 From: "guillem.cordoba" Date: Tue, 6 Aug 2024 14:25:18 +0200 Subject: [PATCH] Attempt fix tests --- .github/workflows/build-and-cache.yaml | 4 ++-- tests/src/setup.ts | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-cache.yaml b/.github/workflows/build-and-cache.yaml index 6dab643b3..bc6971270 100644 --- a/.github/workflows/build-and-cache.yaml +++ b/.github/workflows/build-and-cache.yaml @@ -1,4 +1,4 @@ -name: "Build and cache nix packages" +name: "Build and cache zomes" on: push: branches: [ main ] @@ -6,7 +6,7 @@ on: branches: [ main ] jobs: - build-and-cache-nix-packages: + build-and-cache-zomes: strategy: matrix: os: [ubuntu-latest, macos-latest] diff --git a/tests/src/setup.ts b/tests/src/setup.ts index a00d6f940..9f2af6a2f 100644 --- a/tests/src/setup.ts +++ b/tests/src/setup.ts @@ -33,7 +33,10 @@ export function patchCallZome(appWs: AppWebsocket) { const result = await callZome(req); return result; } catch (e) { - if (!e.toString().includes('Socket is not open')) { + if ( + !e.toString().includes('Socket is not open') && + !e.toString().includes('ClientClosedWithPendingRequests') + ) { throw e; } }