Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Giorgio Trettenero committed Dec 4, 2024
1 parent a1fd485 commit 5e2824c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ public void testDeleteDbNoCascades() {
polarisTableService.create(requestContext, tableInfo);
Assert.assertTrue(polarisTableService.exists(requestContext, qualifiedName));

// Expect an InvalidMetaException when trying to delete a non-empty database
polarisDBService.delete(requestContext, DB1_QUALIFIED_NAME);
// Expect an DatabasePreconditionFailedException when trying to delete a non-empty database
Assertions.assertThrows(DatabasePreconditionFailedException.class, () ->
polarisDBService.delete(requestContext, DB1_QUALIFIED_NAME));

Expand Down

0 comments on commit 5e2824c

Please sign in to comment.