You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 28, 2018. It is now read-only.
Copy file name to clipboardExpand all lines: media/multipart/src/test/java/org/glassfish/jersey/media/multipart/internal/FormDataMultiPartReaderWriterTest.java
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -706,6 +706,9 @@ public void testInjectedFileNotCopied(@Mocked final BodyPartEntity entity) throw
Copy file name to clipboardExpand all lines: tests/integration/jersey-2846/src/test/java/org/glassfish/jersey/tests/integration/jersey2846/Jersey2846ITCase.java
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -138,6 +138,8 @@ public void _test(final String path, final int status, final Object entity) thro
138
138
139
139
// Get Response ...
140
140
assertThat(response.getStatus(), is(status));
141
+
// Wait a second to make sure the files don't exist.
142
+
Thread.sleep(1000);
141
143
142
144
// Make sure that the message and it's parts have been closed and temporary files deleted.
143
145
assertThat("Temporary files were not deleted", matchingTempFiles(tempDir), is(expectedTempFiles));
0 commit comments