Skip to content

Commit

Permalink
fix assertion in JmsTestKitSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
sullis committed Dec 31, 2020
1 parent 9b908d3 commit 6cddf9a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/test/scala/jmstestkit/JmsTestKitSpec.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package jmstestkit

import org.scalatest.concurrent.Eventually.eventually
import org.scalatest.matchers.should.Matchers
import org.scalatest.wordspec.AnyWordSpec

Expand Down Expand Up @@ -50,7 +51,11 @@ class JmsTestKitSpec
withTopic() { topic =>
topic.toSeq.size shouldBe 0
topic.publishMessage("Hello world")
topic.toSeq.size shouldBe 1

eventually {
topic.toSeq.size shouldBe 1
}

val broker = topic.broker
broker.isStarted shouldBe true
broker.isStopped shouldBe false
Expand Down

0 comments on commit 6cddf9a

Please sign in to comment.