diff --git a/testing/notification-test-aws/src/test/java/org/opengroup/osdu/notification/subscriptions/TestNotificationsEndpoint.java b/testing/notification-test-aws/src/test/java/org/opengroup/osdu/notification/subscriptions/TestNotificationsEndpoint.java
index a5f8f989291c9b9c8092bb6ae27757c6b5a47cee..c92dc89b5872afdbaecd0916d33f92094b2a9756 100644
--- a/testing/notification-test-aws/src/test/java/org/opengroup/osdu/notification/subscriptions/TestNotificationsEndpoint.java
+++ b/testing/notification-test-aws/src/test/java/org/opengroup/osdu/notification/subscriptions/TestNotificationsEndpoint.java
@@ -409,6 +409,7 @@ public class TestNotificationsEndpoint {
                         assertEquals(200, indexerMessage.indexProgress().statusCode());
                         Instant lastChanged = Instant.parse(indexerMessage.indexProgress().lastUpdateTime());
                         assertTrue(lastChanged.isAfter(start) && lastChanged.isBefore(end));
+                        break;
                     } else {
 
                         System.out.printf("The %d time checking the first successful message failed with status %s. Deleting message and getting another one.\n", failedCount, indexerMessage.status());