Skip to content

Commit

Permalink
Fix after 4.29.0.Final release
Browse files Browse the repository at this point in the history
fix test

Signed-off-by: Stephane Bouchet <[email protected]>
  • Loading branch information
sbouchet committed Nov 3, 2023
1 parent 7a63770 commit 49638a2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public void testTimeoutWithoutCancel() throws Exception {
URLTransportUtility util = new URLTransportUtility();
ByteArrayOutputStream os = new ByteArrayOutputStream();
long t1 = System.currentTimeMillis();
IStatus s = util.download("displayString", url, os, 500, monitor);
IStatus s = util.download("displayString", url, os, 600, monitor);
long t2 = System.currentTimeMillis();
assertTrue(s.getSeverity() == IStatus.ERROR);
assertTrue(t2 - t1 < 3000);
Expand Down Expand Up @@ -191,7 +191,7 @@ public void run() {
ByteArrayOutputStream os = new ByteArrayOutputStream();
IStatus s = util.download("displayString", url.toExternalForm(), os, monitor);
synchronized (times) {
times[1] = System.currentTimeMillis();
times[1] = System.currentTimeMillis();
}
assertTrue(s.getSeverity() == IStatus.CANCEL || s.getSeverity() == IStatus.ERROR);
// MUST cancel within 500 ms
Expand Down

0 comments on commit 49638a2

Please sign in to comment.