Merge pull request #7443 from corda/adel/ENT-10371

ENT-10371: Fix unit test failure in CordaServiceLifecycleTests.
This commit is contained in:
Adel El-Beik 2023-08-02 20:51:34 +01:00 committed by GitHub
commit 1eb3b3b42b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,6 +156,6 @@ class CordaServiceLifecycleTests {
/**
* Given an event, was the SMM started when the event was received?
*/
fun getSmmStartedForEvent(event: ServiceLifecycleEvent) : Int = smmStateAtEvent.getOrDefault(event, STATE_MACHINE_MANAGER_UNKNOWN_STATUS)
fun getSmmStartedForEvent(event: ServiceLifecycleEvent) : Int = smmStateAtEvent[event] ?: checkSmmStarted()
}
}