Add a sleep to try and avoid sporadic fails

This commit is contained in:
Dave Syer
2016-10-12 12:05:29 +02:00
parent b3c3f50e9e
commit 23f2a35958

View File

@@ -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();