ifs-web-service/ifs-application-commons/src/test/java/org/innovateuk/ifs/async/controller/endtoend/EndToEndAsyncControllerIntegrationTest.java
// a SonarQube-compliant way to sleep the Thread for an interval
a SonarQube-compliant way to sleep the Thread for an interval
a SonarQube - compliant way to sleep the Thread for an interval
static void sleepQuietlyForRandomInterval() {
        try {
            int randomMillis = (int) (Math.random() * 10) + 10;
            Awaitility.await().pollDelay(randomMillis, TimeUnit.MILLISECONDS).
                    timeout(randomMillis + 100, TimeUnit.MILLISECONDS).
                    until(() -> false);
        } catch (ConditionTimeoutException e) {
        }
    }
static void sleepQuietlyForRandomInterval ( ) { try { int randomMillis = ( int ) ( Math . random ( ) * 10 ) + 10 ; Awaitility . await ( ) . pollDelay ( randomMillis , TimeUnit . MILLISECONDS ) . timeout ( randomMillis + 100 , TimeUnit . MILLISECONDS ) . until ( ( ) -> false ) ; } catch ( ConditionTimeoutException e ) { } }
a SonarQube-compliant way to sleep the Thread for an interval
a SonarQube - compliant way to sleep the Thread for an interval
// expected behaviour when our delay is over