diff --git a/hibernate-reactive-core/src/test/java/org/hibernate/reactive/schema/SchemaUpdateCockroachDBTestBase.java b/hibernate-reactive-core/src/test/java/org/hibernate/reactive/schema/SchemaUpdateCockroachDBTestBase.java index 3f312ed11..e743f45bd 100644 --- a/hibernate-reactive-core/src/test/java/org/hibernate/reactive/schema/SchemaUpdateCockroachDBTestBase.java +++ b/hibernate-reactive-core/src/test/java/org/hibernate/reactive/schema/SchemaUpdateCockroachDBTestBase.java @@ -155,21 +155,17 @@ public void testUpdate(TestContext context) { .setParameter( 1, "asimple" ) .getResultList() .thenAccept( list -> { - context.assertEquals( - "CREATE INDEX i_asimple_avalue_astringvalue ON postgres.public.asimple USING btree (avalue ASC, astringvalue DESC)", - list.get( 0 ) + context.assertTrue( list.contains( + "CREATE INDEX i_asimple_avalue_astringvalue ON postgres.public.asimple USING btree (avalue ASC, astringvalue DESC)") ); - context.assertEquals( - "CREATE INDEX i_asimple_avalue_data ON postgres.public.asimple USING btree (avalue DESC, data ASC)", - list.get( 1 ) + context.assertTrue( list.contains( + "CREATE INDEX i_asimple_avalue_data ON postgres.public.asimple USING btree (avalue DESC, data ASC)") ); - context.assertEquals( - "CREATE UNIQUE INDEX \"primary\" ON postgres.public.asimple USING btree (id ASC)", - list.get( 2 ) + context.assertTrue( list.contains( + "CREATE UNIQUE INDEX asimple_pkey ON postgres.public.asimple USING btree (id ASC)") ); - context.assertEquals( - "CREATE UNIQUE INDEX u_asimple_astringvalue ON postgres.public.asimple USING btree (astringvalue ASC)", - list.get( 3 ) + context.assertTrue( list.contains( + "CREATE UNIQUE INDEX u_asimple_astringvalue ON postgres.public.asimple USING btree (astringvalue ASC)") ); } ) ) @@ -178,7 +174,7 @@ public void testUpdate(TestContext context) { .getSingleResult() .thenAccept( result -> context.assertEquals( - "CREATE UNIQUE INDEX \"primary\" ON postgres.public.aother USING btree (id1 ASC, id2 ASC)", + "CREATE UNIQUE INDEX aother_pkey ON postgres.public.aother USING btree (id1 ASC, id2 ASC)", result ) ) @@ -188,7 +184,7 @@ public void testUpdate(TestContext context) { .getSingleResult() .thenAccept( result -> context.assertEquals( - "CREATE UNIQUE INDEX \"primary\" ON postgres.public.aanother USING btree (id ASC)", + "CREATE UNIQUE INDEX aanother_pkey ON postgres.public.aanother USING btree (id ASC)", result ) )