CORDA-3291 Fix broken tests (#6197)

This commit is contained in:
Dan Newton 2020-04-30 10:27:36 +01:00 committed by GitHub
parent 66f241efe8
commit cb84fd86ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -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)
}

View File

@ -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)