Skip to content

Commit 6023f24

Browse files
committed
Surround
1 parent 55e77c4 commit 6023f24

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

it/src/test/scala/integration/LoadExampleIntSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

src/test/scala/integration/TopicLoaderIntSpec.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)