Fixed flaky test testUpload_Multipart().

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
Simone Bordet 2019-11-13 16:46:11 +01:00
parent 4f6585562f
commit e3f31a86a2
1 changed files with 1 additions and 0 deletions

View File

@ -271,6 +271,7 @@ public class HugeResourceTest
multipart.addFilePart(name, filename, new PathContentProvider(inputFile), null);
URI destUri = server.getURI().resolve("/multipart");
client.setIdleTimeout(90_000);
Request request = client.newRequest(destUri).method(HttpMethod.POST).content(multipart);
ContentResponse response = request.send();
assertThat("HTTP Response Code", response.getStatus(), is(200));