diff --git a/integration-test/src/test/java/com/datastrato/gravitino/integration/test/trino/TrinoConnectorIT.java b/integration-test/src/test/java/com/datastrato/gravitino/integration/test/trino/TrinoConnectorIT.java index 767a293d5e1..948ba0caa07 100644 --- a/integration-test/src/test/java/com/datastrato/gravitino/integration/test/trino/TrinoConnectorIT.java +++ b/integration-test/src/test/java/com/datastrato/gravitino/integration/test/trino/TrinoConnectorIT.java @@ -858,7 +858,7 @@ void testIcebergCatalogCreatedByGravitino() throws InterruptedException { final String sql1 = String.format("drop schema \"%s.%s\".%s cascade", metalakeName, catalogName, schemaName); // Will fail because the iceberg catalog does not support cascade drop - containerSuite.getTrinoContainer().executeUpdateSQL(sql1); + Assertions.assertThrows(RuntimeException.class, ()->containerSuite.getTrinoContainer().executeUpdateSQL(sql1)); final String sql2 = String.format("show schemas in \"%s.%s\" like '%s'", metalakeName, catalogName, schemaName);