mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
increase timeout a little bit because github actions are laggy
This commit is contained in:
@@ -56,9 +56,9 @@ class HttpGetterTest {
|
|||||||
|
|
||||||
this.config = Mockito.mock(CommaFeedConfiguration.class, Mockito.RETURNS_DEEP_STUBS);
|
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().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().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().responseTimeout()).thenReturn(Duration.ofMillis(300));
|
||||||
Mockito.when(config.httpClient().connectionTimeToLive()).thenReturn(Duration.ofSeconds(30));
|
Mockito.when(config.httpClient().connectionTimeToLive()).thenReturn(Duration.ofSeconds(30));
|
||||||
Mockito.when(config.httpClient().maxResponseSize()).thenReturn(new MemorySize(new BigInteger("10000")));
|
Mockito.when(config.httpClient().maxResponseSize()).thenReturn(new MemorySize(new BigInteger("10000")));
|
||||||
|
|||||||
Reference in New Issue
Block a user