Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
leMaik committed Sep 24, 2024
1 parent 08cf143 commit 4a044d3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.time.Duration;
import java.util.Arrays;
import java.util.Base64;
import java.util.HashMap;
Expand Down Expand Up @@ -70,7 +71,7 @@ public void init() {
final Map<String, Integer> previousProgress = new HashMap<>();

@Override
public void setProgress(String task, int done, int start, int target) {
public void setProgress(String task, int done, int start, int target, Duration duration) {
int previous = previousProgress.getOrDefault(task, Integer.MIN_VALUE);
// check that progress is monotonically increasing
assertTrue(done >= previous, "progress (" + done + ") should be greater or equal to previous progress (" + previous + ")");
Expand Down

0 comments on commit 4a044d3

Please sign in to comment.