From 65e04ac710e4dd6105d4b60809ad8b81f6a18c2d Mon Sep 17 00:00:00 2001 From: Victor Andreasson Date: Tue, 19 Mar 2024 10:46:55 +0100 Subject: [PATCH] Trying to see if retry rule is used with parameterized tests --- app/src/androidTest/java/com/orgzly/android/RetryTestRule.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/androidTest/java/com/orgzly/android/RetryTestRule.kt b/app/src/androidTest/java/com/orgzly/android/RetryTestRule.kt index c36faf04c..e96d70193 100644 --- a/app/src/androidTest/java/com/orgzly/android/RetryTestRule.kt +++ b/app/src/androidTest/java/com/orgzly/android/RetryTestRule.kt @@ -35,7 +35,7 @@ class RetryTestRule(val retryCount: Int = 3) : TestRule { } Log.e(TAG, description.displayName + ": giving up after " + retryCount + " failures") - throw caughtThrowable!! + throw AssertionError("Test failed 3 times: ", caughtThrowable) } } }