From 84866dfd60ca36a290cdb652b0b79d16acf3e3c2 Mon Sep 17 00:00:00 2001 From: simojenki Date: Thu, 20 Oct 2022 16:35:18 +1100 Subject: [PATCH] Trying to make server tests more stable --- Dockerfile | 2 +- tests/server.test.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index cf158fb..3269dce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,7 @@ COPY yarn.lock . COPY .yarnrc.yml . COPY .yarn/releases ./.yarn/releases -ENV JEST_TIMEOUT=30000 +ENV JEST_TIMEOUT=60000 ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update && \ diff --git a/tests/server.test.ts b/tests/server.test.ts index b8e32ff..c636607 100644 --- a/tests/server.test.ts +++ b/tests/server.test.ts @@ -172,8 +172,8 @@ describe("server", () => { jest.resetAllMocks(); }); - const bonobUrlWithNoContextPath = url("http://bonob.localhost:1234"); - const bonobUrlWithContextPath = url("http://bonob.localhost:1234/aContext"); + const bonobUrlWithNoContextPath = url("http://localhost:1234"); + const bonobUrlWithContextPath = url("http://localhost:1234/aContext"); const langName = randomLang(); const acceptLanguage = `le-ET,${langName};q=0.9,en;q=0.8`;