Skip to content

Commit

Permalink
Fix Iceberg exception assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
wendigo committed Nov 6, 2024
1 parent d79e9be commit 48df090
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public void testInsertFailureDoesNotCorruptTheTableMetadata()
assertThat(throwable.getCause()).isInstanceOf(Failure.class);
Failure failure = (Failure) throwable.getCause();
assertThat(failure.getMessage()).contains("Test-simulated Glue timeout exception");
assertThat(failure.getFailureInfo().getType()).isEqualTo("org.apache.iceberg.exceptions.CommitStateUnknownException");
assertThat(failure.getFailureInfo().getType()).isEqualTo("io.trino.spi.TrinoException");
});
assertQuery("SELECT * FROM " + tableName, "VALUES 'Trino', 'rocks'");
}
Expand Down

0 comments on commit 48df090

Please sign in to comment.