diff --git a/src/test/java/org/springframework/retry/annotation/ProxyApplicationTests.java b/src/test/java/org/springframework/retry/annotation/ProxyApplicationTests.java index 38030c6..f580c29 100644 --- a/src/test/java/org/springframework/retry/annotation/ProxyApplicationTests.java +++ b/src/test/java/org/springframework/retry/annotation/ProxyApplicationTests.java @@ -22,9 +22,13 @@ public class ProxyApplicationTests { @Test // See gh-53 - public void contextLoads() { + public void contextLoads() throws Exception { int count = count(); runAndClose(); + runAndClose(); + // Let the JVM catch up + Thread.sleep(500L); + runAndClose(); int base = count(); runAndClose(); count = count();