Merge pull request #29210 from chbatey/issue-29197

LocalPubSubSpec: Stop log being captured from creation
This commit is contained in:
Renato Cavalcanti 2020-06-10 11:38:06 +02:00 committed by GitHub
commit 14f6befd3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,11 +50,9 @@ class LocalPubSubSpec extends ScalaTestWithActorTestKit with AnyWordSpecLike wit
}
"publish to all subscriber actors across several instances of the same topic" in {
val fruitTopic1 =
testKit.spawn(Topic[String]("fruit"))
val fruitTopic2 =
testKit.spawn(Topic[String]("fruit"))
val (fruitTopic1, fruitTopic2) = LoggingTestKit.debug("Topic list updated").withOccurrences(2).expect {
(testKit.spawn(Topic[String]("fruit")), testKit.spawn(Topic[String]("fruit")))
}
try {
val probe1 = testKit.createTestProbe[String]()