mirror of
https://github.com/corda/corda.git
synced 2025-03-22 03:55:26 +00:00
CORDA-3291 Fix broken tests (#6197)
This commit is contained in:
parent
66f241efe8
commit
cb84fd86ee
@ -151,7 +151,7 @@ class FlowIsKilledTest {
|
||||
assertThatExceptionOfType(KilledFlowException::class.java)
|
||||
.isThrownBy { handle.returnValue.getOrThrow(1.minutes) }
|
||||
.withMessage(EXCEPTION_MESSAGE)
|
||||
assertEquals(11, AFlowThatChecksIfItWantsToDie.position)
|
||||
assertEquals(11, AFlowThatChecksIfItWantsToDieAndLeavesANote.position)
|
||||
val checkpoints = rpc.startFlow(::GetNumberOfCheckpointsFlow).returnValue.getOrThrow(20.seconds)
|
||||
assertEquals(1, checkpoints)
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ class StatemachineKillFlowErrorHandlingTest : StatemachineErrorHandlingTest() {
|
||||
* No pass through the hospital is recorded. As the flow is marked as `isRemoved`.
|
||||
*/
|
||||
@Test(timeout=300_000)
|
||||
fun `error during transition due to an InterruptedException (killFlow) will terminate the flow`() {
|
||||
fun `error during transition due to killing a flow will terminate the flow`() {
|
||||
startDriver {
|
||||
val alice = createBytemanNode(ALICE_NAME)
|
||||
|
||||
@ -93,8 +93,6 @@ class StatemachineKillFlowErrorHandlingTest : StatemachineErrorHandlingTest() {
|
||||
// Check the stdout for the lines generated by byteman
|
||||
assertEquals(0, output.filter { it.contains("Byteman test - discharging") }.size)
|
||||
assertEquals(0, output.filter { it.contains("Byteman test - overnight observation") }.size)
|
||||
val numberOfTerminalDiagnoses = output.filter { it.contains("Byteman test - terminal") }.size
|
||||
assertEquals(1, numberOfTerminalDiagnoses)
|
||||
val (discharge, observation) = aliceClient.startFlow(StatemachineErrorHandlingTest::GetHospitalCountersFlow).returnValue.get()
|
||||
assertEquals(0, discharge)
|
||||
assertEquals(0, observation)
|
||||
|
Loading…
x
Reference in New Issue
Block a user