Joel Hess
08/27/2020, 7:38 PMSpringBootTest
annotation) and using eventually
to wait for a result, but it appears to not be waiting for the whole time.
eventually(60.seconds) {
val member = memberProjectionRepository.findByTenantIdAndClientMemberId(
createMemberCmd.tenantId,
clientMemberId
)
println("ack")
member.shouldNotBeNull()
member.clientMemberId.shouldBe(clientMemberId)
}
I see my ack
in the output once or twice, but that’s it. any other tests that I have in the spec still continue to run as expected. How can I keep it from shutting down prematurely?Joel Hess
08/27/2020, 8:54 PMval member = eventually(500.seconds, IllegalStateException::class) {
checkNotNull(memberProjectionRepository.findByTenantIdAndClientMemberId(
createMemberCmd.tenantId,
clientMemberId
))
}
member.shouldNotBeNull()
member.clientMemberId.shouldBe(clientMemberId)
sam
08/27/2020, 10:32 PMsam
08/27/2020, 10:33 PMsam
08/27/2020, 10:34 PMError
insteadJoel Hess
08/28/2020, 12:52 PMJoel Hess
08/28/2020, 12:52 PMsam
08/29/2020, 2:20 AMJoel Hess
08/31/2020, 7:19 PM