Skip to content

Commit

Permalink
test(wow-core): update LocalFirstCommandBusTest to verify message con…
Browse files Browse the repository at this point in the history
…tent (#1107)

- Replace verifyTimeout with more specific message content verification
- Check if the received message ID and isVoid flag match the expected values
- Update test to cancel subscription after receiving the expected message
  • Loading branch information
Ahoo-Wang authored Jan 9, 2025
1 parent adfd07e commit fbd63fb
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@ class LocalFirstCommandBusTest : CommandBusSpec() {
.subscribe()
}
.test()
.verifyTimeout(Duration.ofMillis(100))
.consumeNextWith {
assertThat(it.message.id, equalTo(message.id))
assertThat(it.message.isVoid, equalTo(true))
}
.thenCancel()
.verify()
}
}
}
Expand Down

0 comments on commit fbd63fb

Please sign in to comment.