https://kotlinlang.org logo
#koin
Title
# koin
j

Jonathan Willis

07/22/2022, 5:49 PM
even though i’m creating the modules as shown in the documentation:
Copy code
@JvmField
  @RegisterExtension
  val koinTestExtension = KoinTestExtension.create {
      modules(
        module {
          single {
            println("creating vertx instance")
            Vertx.vertx()
            println("done creating vertx intstance")
          }
        ...
   }
l

Landry Norris

07/22/2022, 5:50 PM
Your single is returning Unit because of the println. Remove it or use Vertx.vertx().also { println(“…”) }
j

Jonathan Willis

07/22/2022, 5:52 PM
🤦
thank you
3 Views