diff --git a/tests/src/main/scalajvm/sttp/tapir/tests/TestSuite.scala b/tests/src/main/scalajvm/sttp/tapir/tests/TestSuite.scala index a005d9bb08..577d041851 100644 --- a/tests/src/main/scalajvm/sttp/tapir/tests/TestSuite.scala +++ b/tests/src/main/scalajvm/sttp/tapir/tests/TestSuite.scala @@ -15,6 +15,7 @@ trait TestSuite extends AsyncFunSuite with BeforeAndAfterAll { // we need to register the tests when the class is constructed, as otherwise scalatest skips it val (allTests, doRelease) = tests.allocated.unsafeRunSync() + println(s"Allocated: ${getClass.getName}") allTests.foreach { t => if (testNameFilter.forall(filter => t.name.contains(filter))) { @@ -25,9 +26,11 @@ trait TestSuite extends AsyncFunSuite with BeforeAndAfterAll { private val release = doRelease override protected def afterAll(): Unit = { + println(s"Deallocating... ${getClass.getName}") // the resources can only be released after all of the tests are run release.unsafeRunSync() shutdownDispatcher.unsafeRunSync() + println(s"Deallocating ${getClass.getName} done") super.afterAll() } }