Skip to content

Commit

Permalink
ADM-794:[backend]fix: repair test (#1019)
Browse files Browse the repository at this point in the history
* ADM-794:[backend]fix: add test for generate report

* ADM-794:[backend]fix: repair test for pipeline

* ADM-794:[backend]fix: add test for pipeline

* ADM-794:[backend]fix: refactor code

* ADM-794:[backend]fix: refactor for report service test

* ADM-794:[backend]fix: repair test to add sleep

* ADM-794:[backend]fix: repair test

---------

Co-authored-by: K Chow <[email protected]>
  • Loading branch information
2 people authored and Dnjoa committed Feb 1, 2024
1 parent aaee7d2 commit f616376
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f616376

Please sign in to comment.