From: ToineSiebelink Date: Tue, 24 Sep 2024 17:16:31 +0000 (+0100) Subject: Fix intermittent error in integration test X-Git-Tag: 3.5.3~14 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=d8909ffdcc94cc617525f9dce857a1ebb2941b3b;p=cps.git Fix intermittent error in integration test - make collection verification order independent Issue-ID: CPS-475 Change-Id: Ib070fd5360463c93ba6193a84a1dfcd11cd802fa Signed-off-by: ToineSiebelink --- diff --git a/integration-test/src/test/groovy/org/onap/cps/integration/functional/cps/ModuleServiceIntegrationSpec.groovy b/integration-test/src/test/groovy/org/onap/cps/integration/functional/cps/ModuleServiceIntegrationSpec.groovy index 0e465d84a0..5f4ba3456c 100644 --- a/integration-test/src/test/groovy/org/onap/cps/integration/functional/cps/ModuleServiceIntegrationSpec.groovy +++ b/integration-test/src/test/groovy/org/onap/cps/integration/functional/cps/ModuleServiceIntegrationSpec.groovy @@ -215,7 +215,8 @@ class ModuleServiceIntegrationSpec extends FunctionalSpecBase { when: 'all schema sets are retrieved' def result = objectUnderTest.getSchemaSets(FUNCTIONAL_TEST_DATASPACE_1) then: 'the result contains all expected schema sets' - assert result.name == [ 'bookstoreSchemaSet', 'newSchema1' ] + assert result.name.size() == 2 + assert result.name.containsAll('bookstoreSchemaSet', 'newSchema1') cleanup: objectUnderTest.deleteSchemaSetsWithCascade(FUNCTIONAL_TEST_DATASPACE_1, ['newSchema1']) }