From 839599cc5816d2d01dca23980d056749a34531fb Mon Sep 17 00:00:00 2001 From: Giorgio Trettenero Date: Sat, 7 Dec 2024 12:23:28 -0800 Subject: [PATCH] check if table exist and db exists after db delete was blocked --- .../connector/polaris/PolarisConnectorDatabaseServiceTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/metacat-connector-polaris/src/test/java/com/netflix/metacat/connector/polaris/PolarisConnectorDatabaseServiceTest.java b/metacat-connector-polaris/src/test/java/com/netflix/metacat/connector/polaris/PolarisConnectorDatabaseServiceTest.java index fb6e88f6..08a16a38 100644 --- a/metacat-connector-polaris/src/test/java/com/netflix/metacat/connector/polaris/PolarisConnectorDatabaseServiceTest.java +++ b/metacat-connector-polaris/src/test/java/com/netflix/metacat/connector/polaris/PolarisConnectorDatabaseServiceTest.java @@ -217,8 +217,7 @@ public void testDeleteDbNoCascades() { polarisTableService.create(requestContext, tableInfo); Assert.assertTrue(polarisTableService.exists(requestContext, qualifiedName)); - Assertions.assertThrows(InvalidMetaException.class, () -> - polarisDBService.delete(requestContext, DB1_QUALIFIED_NAME)); + polarisDBService.delete(requestContext, DB1_QUALIFIED_NAME); Assert.assertTrue(polarisTableService.exists(requestContext, qualifiedName)); Assert.assertTrue(polarisDBService.exists(requestContext, DB1_QUALIFIED_NAME));