Skip to content

MINOR: Fix meaningless message in assertNull validation#9965

Merged
chia7712 merged 1 commit intoapache:trunkfrom
dengziming:minor-assert-true
Jan 27, 2021
Merged

MINOR: Fix meaningless message in assertNull validation#9965
chia7712 merged 1 commit intoapache:trunkfrom
dengziming:minor-assert-true

Conversation

@dengziming
Copy link
Copy Markdown
Member

@dengziming dengziming commented Jan 25, 2021

More detailed description of your change

I think the author wants to say assertEquals(null, xxx)

Summary of testing strategy (including rationale)
QA

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@dengziming
Copy link
Copy Markdown
Member Author

@guozhangwang , hello, PTAL.

@chia7712
Copy link
Copy Markdown
Member

It seems to me the title is a bit confusing. The first argument is "error message" rather than "expected object".

@dengziming dengziming changed the title MINOR: Fix always-passing assertNull validation MINOR: Fix meaningless message in assertNull validation Jan 27, 2021
@dengziming
Copy link
Copy Markdown
Member Author

@chia7712 Thank you, I mistakenly treat the second parameter as "error message", I have changed the title.

Copy link
Copy Markdown
Member

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

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

@dengziming Thanks for your patch. LGTM

@chia7712 chia7712 merged commit c830bce into apache:trunk Jan 27, 2021
@dengziming dengziming deleted the minor-assert-true branch October 8, 2022 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants