From d8909ffdcc94cc617525f9dce857a1ebb2941b3b Mon Sep 17 00:00:00 2001 From: ToineSiebelink Date: Tue, 24 Sep 2024 18:16:31 +0100 Subject: Fix intermittent error in integration test - make collection verification order independent Issue-ID: CPS-475 Change-Id: Ib070fd5360463c93ba6193a84a1dfcd11cd802fa Signed-off-by: ToineSiebelink --- .../cps/integration/functional/cps/ModuleServiceIntegrationSpec.groovy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'integration-test') 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']) } -- cgit 1.2.3-korg