diff --git a/backend/src/test/java/heartbeat/service/report/ReportServiceTest.java b/backend/src/test/java/heartbeat/service/report/ReportServiceTest.java index 563045ea5d..cdbd4e6542 100644 --- a/backend/src/test/java/heartbeat/service/report/ReportServiceTest.java +++ b/backend/src/test/java/heartbeat/service/report/ReportServiceTest.java @@ -124,8 +124,8 @@ void ShouldInitializeMetricsDataCompletedInHandlerWhenRequestMetricsExist() thro .thenReturn(MetricsDataCompleted.builder().pipelineMetricsCompleted(true).build()); doAnswer(invocation -> null).when(generateReporterService).generateBoardReport(request); - Thread.sleep(100); reportService.generateReportByType(request, MetricType.BOARD); + Thread.sleep(100); verify(asyncMetricsDataHandler).putMetricsDataCompleted("csvTimeStamp", expectMetricsDataResult); verify(generateReporterService).generateBoardReport(request);