File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
main/java/com/aws/greengrass/mqttclient
test/java/com/aws/greengrass/mqttclient Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -623,6 +623,7 @@ protected CompletableFuture<Integer> publishSingleSpoolerMessage(AwsIotMqttClien
623623 logger .atError ().log ("Failed to publish the message via Spooler"
624624 + " after retried {} times and will drop the message" ,
625625 maxPublishRetryCount , throwable );
626+ spool .removeMessageById (finalId );
626627 }
627628
628629 }
Original file line number Diff line number Diff line change @@ -719,7 +719,7 @@ void GIVEN_publish_request_unsuccessfully_WHEN_spool_single_message_THEN_not_ret
719719 client .publishSingleSpoolerMessage (awsIotMqttClient );
720720
721721 verify (awsIotMqttClient ).publish (any (), any (), anyBoolean ());
722- verify (spool , never ( )).removeMessageById (anyLong ());
722+ verify (spool , times ( 1 )).removeMessageById (anyLong ());
723723 verify (spool , never ()).addId (anyLong ());
724724 }
725725
You can’t perform that action at this time.
0 commit comments