VratislavHais commented on a change in pull request #3170:
URL: https://github.com/apache/camel-quarkus/pull/3170#discussion_r725137183



##########
File path: 
integration-test-groups/aws2/aws2-sqs-sns/src/test/java/org/apache/camel/quarkus/component/aws2/sqs/it/Aws2SqsSnsTest.java
##########
@@ -65,10 +96,12 @@ public void sqs() {
     @Test
     public void sqsDeleteMessage() {
         final String qName = getPredefinedQueueName();
-        final String msg = sendSingleMessageToQueue(qName);
+        sendSingleMessageToQueue(qName);
         final String receipt = receiveReceiptOfMessageFromQueue(qName);
+        final String msg = sendSingleMessageToQueue(qName);
         deleteMessageFromQueue(qName, receipt);
-        Assertions.assertNotEquals(receiveMessageFromQueue(qName), msg);
+        awaitMessageWithExpectedContentFromQueue(msg, qName);

Review comment:
       @zbendhiba I have realized just now that usage of awaitability here is 
incorrect because it would "wait" for the correct message anyway. I'll change 
it to single message request twice. That should do the desired check.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to