From c4c41d14947578acd0bd7de8dbfb551413f877c9 Mon Sep 17 00:00:00 2001 From: Athou Date: Sat, 17 Aug 2024 22:29:40 +0200 Subject: [PATCH] increase timeout a little bit because github actions are laggy --- .../src/test/java/com/commafeed/backend/HttpGetterTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commafeed-server/src/test/java/com/commafeed/backend/HttpGetterTest.java b/commafeed-server/src/test/java/com/commafeed/backend/HttpGetterTest.java index ff2d0409..d2833a8e 100644 --- a/commafeed-server/src/test/java/com/commafeed/backend/HttpGetterTest.java +++ b/commafeed-server/src/test/java/com/commafeed/backend/HttpGetterTest.java @@ -56,9 +56,9 @@ class HttpGetterTest { this.config = Mockito.mock(CommaFeedConfiguration.class, Mockito.RETURNS_DEEP_STUBS); Mockito.when(config.httpClient().userAgent()).thenReturn(Optional.of("http-getter-test")); - Mockito.when(config.httpClient().connectTimeout()).thenReturn(Duration.ofMillis(300)); + Mockito.when(config.httpClient().connectTimeout()).thenReturn(Duration.ofMillis(500)); Mockito.when(config.httpClient().sslHandshakeTimeout()).thenReturn(Duration.ofSeconds(5)); - Mockito.when(config.httpClient().socketTimeout()).thenReturn(Duration.ofMillis(300)); + Mockito.when(config.httpClient().socketTimeout()).thenReturn(Duration.ofMillis(500)); Mockito.when(config.httpClient().responseTimeout()).thenReturn(Duration.ofMillis(300)); Mockito.when(config.httpClient().connectionTimeToLive()).thenReturn(Duration.ofSeconds(30)); Mockito.when(config.httpClient().maxResponseSize()).thenReturn(new MemorySize(new BigInteger("10000")));