diff --git a/core/testing/src/main/java/io/github/droidkaigi/confsched2023/testing/LottieTestRule.kt b/core/testing/src/main/java/io/github/droidkaigi/confsched2023/testing/LottieTestRule.kt index fca4fc3f1..058d58046 100644 --- a/core/testing/src/main/java/io/github/droidkaigi/confsched2023/testing/LottieTestRule.kt +++ b/core/testing/src/main/java/io/github/droidkaigi/confsched2023/testing/LottieTestRule.kt @@ -7,12 +7,13 @@ import java.util.concurrent.Executor import java.util.concurrent.Executors class LottieTestRule : TestWatcher() { + private val defaultExecutor = Executors.newCachedThreadPool() override fun starting(description: Description) { LottieTask.EXECUTOR = Executor(Runnable::run) } override fun finished(description: Description) { - LottieTask.EXECUTOR = Executors.newCachedThreadPool() + LottieTask.EXECUTOR = defaultExecutor } }