killbill-memoizeit

Add more tweaks to flaky testAutoPayOffWithPaymentFailure

6/28/2013 2:53:00 PM

Details

diff --git a/beatrix/src/test/java/com/ning/billing/beatrix/integration/TestIntegrationWithAutoPayOff.java b/beatrix/src/test/java/com/ning/billing/beatrix/integration/TestIntegrationWithAutoPayOff.java
index 5e574e6..05e040a 100644
--- a/beatrix/src/test/java/com/ning/billing/beatrix/integration/TestIntegrationWithAutoPayOff.java
+++ b/beatrix/src/test/java/com/ning/billing/beatrix/integration/TestIntegrationWithAutoPayOff.java
@@ -262,6 +262,8 @@ public class TestIntegrationWithAutoPayOff extends TestIntegrationBase {
             }
             assertEquals(cur.getBalance(), cur.getChargedAmount());
         }
+        // We want to give some time for the retry to fail before we start clearing the state
+        addDelayBceauseOfLackOfCorrectSynchro();
 
         // REMOVE AUTO_PAY_OFF -> WILL SCHEDULE A PAYMENT_RETRY
         paymentPlugin.clear();