Skip to content

Commit

Permalink
check if table still exists after db deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
Giorgio Trettenero committed Dec 7, 2024
1 parent 231aa96 commit 94ccd3d
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,10 @@ public void testDeleteDbNoCascades() {

polarisDBService.delete(requestContext, DB1_QUALIFIED_NAME);

Assertions.assertThrows(InvalidMetaException.class, () ->
polarisDBService.delete(requestContext, DB1_QUALIFIED_NAME));
Assert.assertTrue(polarisDBService.exists(requestContext, qualifiedName));
// Assertions.assertThrows(InvalidMetaException.class, () ->
// polarisDBService.delete(requestContext, DB1_QUALIFIED_NAME));
Assert.assertTrue(polarisTableService.exists(requestContext, qualifiedName));
Assert.assertFalse(polarisDBService.exists(requestContext, DB1_QUALIFIED_NAME));

}
}

0 comments on commit 94ccd3d

Please sign in to comment.