clean logs

This commit is contained in:
valere 2022-12-16 09:34:01 +01:00
parent 3146f5209b
commit ca2d36303c

View file

@ -450,13 +450,13 @@ class CommonTestHelper internal constructor(context: Context, val cryptoConfig:
var backoffTry = 0
val now = System.currentTimeMillis()
while (!predicate()) {
Timber.w("## VALR Trial nb $backoffTry")
Timber.v("## retryWithBackoff Trial nb $backoffTry")
withContext(Dispatchers.IO) {
delay(backoff[backoffTry.coerceAtMost(backoff.size - 1)])
}
backoffTry++
if (System.currentTimeMillis() - now > timeout) {
Timber.w("## VALR Trial fail")
Timber.v("## retryWithBackoff Trial fail")
onFail?.invoke()
return
}