Fix timing issue in CmHandleCreateSpec 20/138420/2
authordanielhanrahan <daniel.hanrahan@est.tech>
Thu, 11 Jul 2024 11:16:43 +0000 (12:16 +0100)
committerdanielhanrahan <daniel.hanrahan@est.tech>
Thu, 11 Jul 2024 11:30:23 +0000 (12:30 +0100)
commitdfd3c3180b3e9e17bf42fc102dffd941234fbe41
tree56f83f160e958826ea8a35c3c80c3f87e12c9507
parent93b52651f0fce4a2d60cd0aa6538e4155115e649
Fix timing issue in CmHandleCreateSpec

The test for module sync retry on LOCKED handles has a timing issue,
due the ordering of the steps. After a LOCKED handle gets reset to
ADVISED state (but DMI is not yet set to available), the Module Sync
Watchdog may wake up and put it back into LOCKED state again.

This fix is to first make the DMI available before waiting for the
LOCKED handle to reset.

Issue-ID: CPS-2304
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I9d33b0eeea1e0a2e163489130c928b4d03182774
integration-test/src/test/groovy/org/onap/cps/integration/functional/ncmp/CmHandleCreateSpec.groovy