Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core: Remove deprecated AssertHelpers #8062

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

liuxiaocs7
Copy link
Member

Remove all remaining AssertHelpers in iceberg-core module.

@github-actions github-actions bot added the core label Jul 14, 2023
@nastra nastra merged commit d230bb4 into apache:master Jul 14, 2023
41 checks passed
@@ -115,11 +116,10 @@ public void testCherryPickDynamicOverwriteConflict() {
long lastSnapshotId = table.currentSnapshot().snapshotId();

// pick the snapshot into the current state
AssertHelpers.assertThrows(
"Should reject partition replacement when a partition has been modified",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nastra, why was this merged when it drops the context from all of these assertions? We took the time to write these context strings that explain what the assertion is testing and I would expect them to be carried forward.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rdblue when I reviewed all of these cases the underlying error message was providing enough context to a reader of the test, thus IMHO the additional context felt redundant. Do you see a few places where you'd like to add the additional context back?
Maybe we should improve the error message in those places where we think some additional context is needed to explain the scenario?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants