From 4a044d3e5848a1ed1646e7ad604990145a4d27b6 Mon Sep 17 00:00:00 2001 From: Maik Marschner Date: Tue, 24 Sep 2024 11:31:12 +0200 Subject: [PATCH] Fix tests. --- .../se/llbit/chunky/renderer/renderdump/RenderDumpTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chunky/src/test/se/llbit/chunky/renderer/renderdump/RenderDumpTest.java b/chunky/src/test/se/llbit/chunky/renderer/renderdump/RenderDumpTest.java index 3c6bd0cd3..9acf7cd87 100644 --- a/chunky/src/test/se/llbit/chunky/renderer/renderdump/RenderDumpTest.java +++ b/chunky/src/test/se/llbit/chunky/renderer/renderdump/RenderDumpTest.java @@ -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; @@ -70,7 +71,7 @@ public void init() { final Map 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 + ")");