From 2cee4542b2efe6de84251445736add2270c410db Mon Sep 17 00:00:00 2001 From: YannC Date: Thu, 1 Aug 2024 09:20:11 +0200 Subject: [PATCH] fix(): test compilation --- .../kestra/webserver/controllers/api/StatsControllerTest.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/webserver/src/test/java/io/kestra/webserver/controllers/api/StatsControllerTest.java b/webserver/src/test/java/io/kestra/webserver/controllers/api/StatsControllerTest.java index 0d6df1e7c8..a96d33520d 100644 --- a/webserver/src/test/java/io/kestra/webserver/controllers/api/StatsControllerTest.java +++ b/webserver/src/test/java/io/kestra/webserver/controllers/api/StatsControllerTest.java @@ -4,7 +4,6 @@ import io.kestra.core.models.executions.statistics.DailyExecutionStatistics; import io.kestra.core.models.executions.statistics.LogStatistics; import io.kestra.core.repositories.ExecutionRepositoryInterface; -import io.kestra.webserver.controllers.api.StatsController; import io.kestra.webserver.controllers.h2.JdbcH2ControllerTest; import io.micronaut.core.type.Argument; import io.micronaut.http.HttpRequest; @@ -16,7 +15,6 @@ import java.time.ZonedDateTime; import java.util.List; -import java.util.Map; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.notNullValue; @@ -31,7 +29,7 @@ class StatsControllerTest extends JdbcH2ControllerTest { void dailyStatistics() { var dailyStatistics = client.toBlocking().retrieve( HttpRequest - .POST("/api/v1/stats/executions/daily", new StatsController.StatisticRequest(null, null, null, ZonedDateTime.now().minusDays(1), ZonedDateTime.now())) + .POST("/api/v1/stats/executions/daily", new StatsController.StatisticRequest(null, null, null, ZonedDateTime.now().minusDays(1), ZonedDateTime.now(), null)) .contentType(MediaType.APPLICATION_JSON), Argument.listOf(DailyExecutionStatistics.class) );