Skip to content

Commit

Permalink
check if table exist and db exists after db delete was blocked
Browse files Browse the repository at this point in the history
  • Loading branch information
Giorgio Trettenero committed Dec 7, 2024
1 parent 7ee77fe commit 839599c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 839599c

Please sign in to comment.