File tree Expand file tree Collapse file tree
src/test/java/gov/cabinetoffice/gap/adminbackend/services Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -722,7 +722,6 @@ void spotlightResponsesResultIsNotNullAndDraftAssessmentStatusIsFailureAndMessag
722722
723723 doNothing ().when (spotlightBatchService ).updateSpotlightBatchStatus (sendToSpotlightDto ,
724724 SpotlightBatchStatus .FAILURE );
725- doNothing ().when (spotlightBatchService ).sendMessageToQueue (spotlightSubmission );
726725
727726 spotlightBatchService .processSpotlightResponse (sendToSpotlightDto , spotlightResponseResults );
728727
@@ -733,7 +732,8 @@ void spotlightResponsesResultIsNotNullAndDraftAssessmentStatusIsFailureAndMessag
733732
734733 verify (spotlightBatchService , times (1 )).updateSpotlightBatchStatus (sendToSpotlightDto ,
735734 SpotlightBatchStatus .FAILURE );
736- verify (spotlightBatchService , times (1 )).sendMessageToQueue (spotlightSubmission );
735+ // GGIS_ERROR submissions should NOT be re-queued - they require manual intervention
736+ verify (spotlightBatchService , never ()).sendMessageToQueue (any ());
737737 }
738738
739739 @ Test
You can’t perform that action at this time.
0 commit comments