File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
it/src/test/scala/integration
src/test/scala/integration Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,6 @@ class LoadExampleIntSpec extends KafkaSpecBase[IO] {
8383 private def withKafkaContext (test : TestContext [IO ] => IO [Assertion ]): IO [Assertion ] = {
8484 object testContext extends TestContext [IO ]
8585 import testContext .*
86- embeddedKafka.use(_ => test(testContext))
86+ embeddedKafka.surround( test(testContext))
8787 }
8888}
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ class TopicLoaderIntSpec extends KafkaSpecBase[IO] {
197197 assertion <- loadAndRunR(NonEmptyList .one(testTopic1))(
198198 _ => loadState.set(true ),
199199 r => topicState.getAndUpdate(_ :+ r).void
200- ).use { _ =>
200+ ).surround {
201201 for {
202202 _ <- eventually(topicState.get.asserting(_ should contain theSameElementsAs preLoad))
203203 _ <- loadState.get.asserting(_ shouldBe true )
@@ -221,6 +221,6 @@ class TopicLoaderIntSpec extends KafkaSpecBase[IO] {
221221 private def withKafkaContext (test : TestContext [IO ] => IO [Assertion ]): IO [Assertion ] = {
222222 object testContext extends TestContext [IO ]
223223 import testContext .*
224- embeddedKafka.use(_ => test(testContext))
224+ embeddedKafka.surround( test(testContext))
225225 }
226226}
You can’t perform that action at this time.
0 commit comments