From e9ff8572f2d3342a13373433d3c306ad63cbd392 Mon Sep 17 00:00:00 2001 From: Anand Karandikar Date: Thu, 26 Dec 2024 11:01:59 -0800 Subject: [PATCH 1/2] Trying to run 10000 times --- .../security/SecureHttpPollingFunctionalTestCase.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/security/src/test/java/org/mule/test/spring/security/SecureHttpPollingFunctionalTestCase.java b/security/src/test/java/org/mule/test/spring/security/SecureHttpPollingFunctionalTestCase.java index a83954ff72..376f8382fe 100644 --- a/security/src/test/java/org/mule/test/spring/security/SecureHttpPollingFunctionalTestCase.java +++ b/security/src/test/java/org/mule/test/spring/security/SecureHttpPollingFunctionalTestCase.java @@ -16,14 +16,18 @@ import static org.hamcrest.CoreMatchers.nullValue; import static org.junit.Assert.assertThat; +import org.junit.runner.RunWith; import org.mule.extension.http.api.HttpResponseAttributes; import org.mule.functional.junit4.MuleArtifactFunctionalTestCase; import org.mule.runtime.api.message.Message; import org.mule.runtime.api.notification.SecurityNotification; import org.mule.runtime.api.notification.SecurityNotificationListener; import org.mule.runtime.api.util.concurrent.Latch; +import org.mule.tck.junit4.FlakinessDetectorTestRunner; +import org.mule.tck.junit4.FlakyTest; import org.mule.tck.junit4.rule.DynamicPort; import org.mule.test.IntegrationTestCaseRunnerConfig; +import org.mule.test.runner.RunnerDelegateTo; import org.mule.tests.api.TestQueueManager; import javax.inject.Inject; @@ -32,7 +36,8 @@ import org.junit.Rule; import org.junit.Test; -@Ignore("W-13603419") +//@Ignore("W-13603419") +@RunnerDelegateTo(FlakinessDetectorTestRunner.class) public class SecureHttpPollingFunctionalTestCase extends MuleArtifactFunctionalTestCase implements IntegrationTestCaseRunnerConfig { @@ -50,6 +55,7 @@ protected String[] getConfigFiles() { } @Test + @FlakyTest(times = 1000) public void testPollingHttpConnectorSentCredentials() throws Exception { final Latch latch = new Latch(); notificationListenerRegistry.registerListener(new SecurityNotificationListener() { From e79e6cb35e0ac6350db2cc10785b4775baba216e Mon Sep 17 00:00:00 2001 From: Anand Karandikar Date: Thu, 26 Dec 2024 11:03:59 -0800 Subject: [PATCH 2/2] Trying to run 10000 times --- .../spring/security/SecureHttpPollingFunctionalTestCase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/src/test/java/org/mule/test/spring/security/SecureHttpPollingFunctionalTestCase.java b/security/src/test/java/org/mule/test/spring/security/SecureHttpPollingFunctionalTestCase.java index 376f8382fe..c833804c94 100644 --- a/security/src/test/java/org/mule/test/spring/security/SecureHttpPollingFunctionalTestCase.java +++ b/security/src/test/java/org/mule/test/spring/security/SecureHttpPollingFunctionalTestCase.java @@ -55,7 +55,7 @@ protected String[] getConfigFiles() { } @Test - @FlakyTest(times = 1000) + @FlakyTest(times = 10000) public void testPollingHttpConnectorSentCredentials() throws Exception { final Latch latch = new Latch(); notificationListenerRegistry.registerListener(new SecurityNotificationListener() {