From d7c7bc6eb9896d519c30e5f59786dd73d39fbc55 Mon Sep 17 00:00:00 2001 From: Ivan Dyatlov Date: Thu, 18 Jul 2024 16:22:56 +0100 Subject: [PATCH] Stop Koin properly in integration tests --- .../com/malinskiy/marathon/scenario/CacheScenarios.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/src/integrationTest/kotlin/com/malinskiy/marathon/scenario/CacheScenarios.kt b/core/src/integrationTest/kotlin/com/malinskiy/marathon/scenario/CacheScenarios.kt index 33260a0c9..9b6fadd71 100644 --- a/core/src/integrationTest/kotlin/com/malinskiy/marathon/scenario/CacheScenarios.kt +++ b/core/src/integrationTest/kotlin/com/malinskiy/marathon/scenario/CacheScenarios.kt @@ -33,10 +33,6 @@ class CacheScenarios : Spek( container.stop() } - afterEachTest { - stopKoin() - } - given("cache is enabled") { group("the first execution of the test") { it("should execute the test") { @@ -110,5 +106,7 @@ private fun TestBody.runMarathonWithOneTest( marathon.runAsync() + stopKoin() + output!! }