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 12bf322 commit 7808048
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ public void testDeleteDbNoCascades() {
Assert.assertTrue(polarisTableService.exists(requestContext, qualifiedName));

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

// Ensure the database still exists after the failed delete attempt
Assert.assertTrue(polarisDBService.exists(requestContext, DB1_QUALIFIED_NAME));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ create table TBLS (
last_updated_by STRING(255),
last_updated_date TIMESTAMP not null,
constraint uniq_name unique(db_name, tbl_name),
foreign key (db_name) references DBS(name) ON DELETE CASCADE ON UPDATE CASCADE
foreign key (db_name) references DBS(name) ON UPDATE CASCADE
);

0 comments on commit 7808048

Please sign in to comment.