mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
configurable http client timeouts
This commit is contained in:
@@ -45,8 +45,8 @@ class FeedFetcherTest {
|
||||
byte[] content = "content".getBytes();
|
||||
String lastContentHash = Hashing.sha1().hashBytes(content).toString();
|
||||
|
||||
Mockito.when(getter.getBinary(url, lastModified, etag, 20000))
|
||||
.thenReturn(new HttpResult(content, "content-type", "last-modified-2", "etag-2", 20, null));
|
||||
Mockito.when(getter.getBinary(url, lastModified, etag))
|
||||
.thenReturn(new HttpResult(content, "content-type", "last-modified-2", "etag-2", null));
|
||||
|
||||
NotModifiedException e = Assertions.assertThrows(NotModifiedException.class,
|
||||
() -> fetcher.fetch(url, false, lastModified, etag, Instant.now(), lastContentHash));
|
||||
|
||||
Reference in New Issue
Block a user