ENT-10371: Fix unit test failure in CordaServiceLifecycleTests.

This commit is contained in:
Adel El-Beik 2023-08-02 13:39:04 +01:00
parent 106ccd7fe8
commit f543e47652

View File

@ -156,6 +156,6 @@ class CordaServiceLifecycleTests {
/** /**
* Given an event, was the SMM started when the event was received? * 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()
} }
} }