Fixing MultiPartServletTest in ee11

This commit is contained in:
Joakim Erdfelt 2024-06-28 07:46:25 -05:00
parent d062cf368e
commit 1bf9cbcf1a
No known key found for this signature in database
GPG Key ID: 2D0E1FB8FE4B68B4
1 changed files with 1 additions and 0 deletions

View File

@ -472,6 +472,7 @@ public class MultiPartServletTest
InputStream inputStream = new GZIPInputStream(responseStream.getInputStream());
MultiPartFormData.Parser formData = new MultiPartFormData.Parser(boundary);
formData.setMaxParts(1);
formData.setMaxMemoryFileSize(-1);
MultiPartFormData.Parts parts = formData.parse(new InputStreamContentSource(inputStream)).join();
assertThat(parts.size(), is(1));