title: Test case is failing after upgrading the spring boot version from 2.1.x to 2.6.x
body: <p>Test case is failing with following
  <strong>Exception :</strong> after upgrading the Springboot version from 2.1.x to 2.6.x</p>
  <pre><code>org.awaitility.core.ConditionTimeoutException: Condition with lambda expression in com.timer.Relax that uses kotlin.jvm.functions.Function0 was not fulfilled within 20 seconds.
  at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:165)
  at org.awaitility.core.CallableCondition.await(CallableCondition.java:78)
  at org.awaitility.core.CallableCondition.await(CallableCondition.java:26)
  at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:895)
  at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:864)
  at com.timer.Relax.until(Relax.kt:14)
  </code></pre>
  <p><strong>code snipet:</strong></p>
  <pre><code>object Relax {
    private const val INCLUSION_TIMEOUT = 20L
  
    fun until(runnable: () -&gt; Unit) {
      await()
          .pollInterval(1, TimeUnit.SECONDS)
          .atMost(INCLUSION_TIMEOUT, TimeUnit.SECONDS)
          .until(callable(runnable))
    }
  
    private fun callable(runnable: () -&gt; Unit): Callable&lt;Boolean&gt; {
      return Callable {
        try {
          runnable.invoke()
          true
        } catch (throwable: Throwable) {
          false
        }
      }
    }
  }
  </code></pre>