Try to fix flaky test by setting a longer timeout in runTest (#442)
This commit is contained in:
parent
3a1eb74d7a
commit
6825d8ac2b
1 changed files with 2 additions and 2 deletions
|
|
@ -85,7 +85,7 @@ class RageshakeDetectionPresenterTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
fun `present - screenshot with success then dismiss`() = runTest {
|
||||
fun `present - screenshot with success then dismiss`() = runTest(timeout = 30.seconds) {
|
||||
val screenshotHolder = FakeScreenshotHolder(screenshotUri = null)
|
||||
val rageshake = FakeRageShake(isAvailableValue = true)
|
||||
val rageshakeDataStore = FakeRageshakeDataStore(isEnabled = true)
|
||||
|
|
@ -99,7 +99,7 @@ class RageshakeDetectionPresenterTest {
|
|||
)
|
||||
moleculeFlow(RecompositionClock.Immediate) {
|
||||
presenter.present()
|
||||
}.test(timeout = 30.seconds) {
|
||||
}.test {
|
||||
skipItems(1)
|
||||
val initialState = awaitItem()
|
||||
assertThat(initialState.isStarted).isFalse()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue