Skip to content

Commit

Permalink
clear any pending dispatches after ToolCardPresenterTest finishes
Browse files Browse the repository at this point in the history
  • Loading branch information
frett committed Feb 28, 2024
1 parent cf86eb1 commit 4b251a9
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import io.mockk.verify
import io.mockk.verifyAll
import java.io.File
import java.util.Locale
import kotlin.test.AfterTest
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertFalse
Expand All @@ -24,6 +25,7 @@ import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.flowOf
import kotlinx.coroutines.test.runTest
import org.cru.godtools.TestUtils.clearAndroidUiDispatcher
import org.cru.godtools.base.Settings
import org.cru.godtools.base.ToolFileSystem
import org.cru.godtools.db.repository.AttachmentsRepository
Expand Down Expand Up @@ -82,6 +84,9 @@ class ToolCardPresenterTest {
translationsRepository = translationsRepository,
)

@AfterTest
fun cleanup() = clearAndroidUiDispatcher()

// region ToolCard.State.tool
@Test
fun `ToolCardState - tool`() = runTest {
Expand Down

0 comments on commit 4b251a9

Please sign in to comment.