Skip to content

Commit c1faee8

Browse files
committed
test: Increase timeout for SettingPasswordTestCase
- Update `SettingPasswordTestCase` to use a 3-minute timeout in `runTest` to prevent premature test failure during long-running password operations.
1 parent 709d7f8 commit c1faee8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/test/src/commonMain/kotlin/com/softartdev/notedelight/ui/cases/SettingPasswordTestCase.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,15 @@ import notedelight.ui.shared.generated.resources.empty_password
2626
import notedelight.ui.shared.generated.resources.incorrect_password
2727
import notedelight.ui.shared.generated.resources.passwords_do_not_match
2828
import org.jetbrains.compose.resources.getString
29+
import kotlin.time.Duration.Companion.minutes
2930

3031
class SettingPasswordTestCase(
3132
composeUiTest: ComposeUiTest,
3233
private val closeSoftKeyboard: () -> Unit,
3334
) : () -> TestResult, BaseTestCase(composeUiTest) {
3435
private val logger = Logger.withTag("ℹ️SettingPasswordTestCase")
3536

36-
override fun invoke() = runTest {
37+
override fun invoke() = runTest(timeout = 3.minutes) {
3738
logger.i { "Starting SettingPasswordTestCase" }
3839
val emptyPassTitle = getString(Res.string.empty_password)
3940
val passDoNotMatchTitle = getString(Res.string.passwords_do_not_match)

0 commit comments

Comments
 (0)