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

Remove redundant skipTestUnlessSupportsDeletes method #12080

Conversation

findepi
Copy link
Member

@findepi findepi commented Apr 21, 2022

  • test skipping can be simply done with
    skipTestUnless(hasBehavior(SUPPORTS_DELETE));
  • the correctness of SUPPORTS_DELETE declaration is already verified in
    verifySupportsDeleteDeclaration and doesn't need to be re-verified
    in other tests
    • a skip... method should just do a skip, not assertions, anyway

@findepi findepi added test maintenance Project maintenance task no-release-notes This pull request does not require release notes entry labels Apr 21, 2022
@findepi findepi requested review from wendigo, ebyhr and hashhar April 21, 2022 13:34
@cla-bot cla-bot bot added the cla-signed label Apr 21, 2022
@findepi findepi force-pushed the findepi/remove-redundant-skiptestunlesssupportsdeletes-method-daae9c branch from a3038ae to e37d77b Compare April 21, 2022 14:27
Copy link
Member

@hashhar hashhar left a comment

Choose a reason for hiding this comment

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

Thanks for cleaning this up. Related failures in Kudu though.

findepi added 2 commits April 22, 2022 09:28
- test skipping can be simply done with
  `skipTestUnless(hasBehavior(SUPPORTS_DELETE));`
- the correctness of SUPPORTS_DELETE declaration is already verified in
  `verifySupportsDeleteDeclaration` and doesn't need to be re-verified
  in other tests
  - a `skip...` method should just do a skip, not assertions, anyway
@findepi findepi force-pushed the findepi/remove-redundant-skiptestunlesssupportsdeletes-method-daae9c branch from e37d77b to 83e3d58 Compare April 22, 2022 07:28
@findepi findepi merged commit 781b6d2 into trinodb:master Apr 22, 2022
@findepi findepi deleted the findepi/remove-redundant-skiptestunlesssupportsdeletes-method-daae9c branch April 22, 2022 09:45
@github-actions github-actions bot added this to the 379 milestone Apr 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed maintenance Project maintenance task no-release-notes This pull request does not require release notes entry test
Development

Successfully merging this pull request may close these issues.

4 participants