From bd4236ff28b00ef31dc2c6e8b04d7c6f36c25d64 Mon Sep 17 00:00:00 2001 From: Hannes Achleitner Date: Sun, 2 Jun 2024 07:40:30 +0200 Subject: [PATCH] More verbose during wait --- .../android/extsample/activity/ExtendedPublishSleepTest.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/extendedSample/src/androidTest/java/info/mqtt/android/extsample/activity/ExtendedPublishSleepTest.kt b/extendedSample/src/androidTest/java/info/mqtt/android/extsample/activity/ExtendedPublishSleepTest.kt index 6ffee929..7b714a0b 100644 --- a/extendedSample/src/androidTest/java/info/mqtt/android/extsample/activity/ExtendedPublishSleepTest.kt +++ b/extendedSample/src/androidTest/java/info/mqtt/android/extsample/activity/ExtendedPublishSleepTest.kt @@ -81,8 +81,11 @@ class ExtendedPublishSleepTest { // onView(ViewMatchers.isRoot()) // .captureToBitmap() // .writeToTestStorage("${javaClass.simpleName}_${nameRule.methodName}-sleep") - Timber.i("wait $WAIT_SECONDS seconds") - sleep(1000 * WAIT_SECONDS) + Timber.i("wait $WAIT_SECONDS seconds start") + for (i in 0..WAIT_SECONDS) { + sleep(1000) + Timber.i("wait ${WAIT_SECONDS - i} seconds") + } device.wakeUp() sleep(1000)