Skip to content

Commit

Permalink
Surround
Browse files Browse the repository at this point in the history
  • Loading branch information
bcarter97 committed Aug 30, 2023
1 parent 55e77c4 commit 6023f24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion it/src/test/scala/integration/LoadExampleIntSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,6 @@ class LoadExampleIntSpec extends KafkaSpecBase[IO] {
private def withKafkaContext(test: TestContext[IO] => IO[Assertion]): IO[Assertion] = {
object testContext extends TestContext[IO]
import testContext.*
embeddedKafka.use(_ => test(testContext))
embeddedKafka.surround(test(testContext))
}
}
4 changes: 2 additions & 2 deletions src/test/scala/integration/TopicLoaderIntSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ class TopicLoaderIntSpec extends KafkaSpecBase[IO] {
assertion <- loadAndRunR(NonEmptyList.one(testTopic1))(
_ => loadState.set(true),
r => topicState.getAndUpdate(_ :+ r).void
).use { _ =>
).surround {
for {
_ <- eventually(topicState.get.asserting(_ should contain theSameElementsAs preLoad))
_ <- loadState.get.asserting(_ shouldBe true)
Expand All @@ -221,6 +221,6 @@ class TopicLoaderIntSpec extends KafkaSpecBase[IO] {
private def withKafkaContext(test: TestContext[IO] => IO[Assertion]): IO[Assertion] = {
object testContext extends TestContext[IO]
import testContext.*
embeddedKafka.use(_ => test(testContext))
embeddedKafka.surround(test(testContext))
}
}

0 comments on commit 6023f24

Please sign in to comment.