Skip to content

Commit

Permalink
Try different test approach
Browse files Browse the repository at this point in the history
  • Loading branch information
adamw committed Aug 23, 2023
1 parent 4dec881 commit c058f0f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kafka/src/test/scala/ox/kafka/KafkaTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ class KafkaTest extends AnyFlatSpec with Matchers with EmbeddedKafka with Before

// then
given Deserializer[String] = new StringDeserializer()
consumeNumberMessagesFrom[String](topic, 3, timeout = 30.seconds) shouldBe List("a", "b", "c")
consumeFirstStringMessageFrom(topic) shouldBe "a"
consumeFirstStringMessageFrom(topic) shouldBe "b"
consumeFirstStringMessageFrom(topic) shouldBe "c"
// TODO consumeNumberMessagesFrom[String](topic, 3, timeout = 30.seconds) shouldBe List("a", "b", "c")
}

it should "commit offsets of processed messages" in {
Expand Down

0 comments on commit c058f0f

Please sign in to comment.