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

[C++] Fixed flaky test: AuthPluginTest.testTlsDetectHttpsWithHostNameValidation #8771

Merged
merged 3 commits into from
Dec 3, 2020

Conversation

merlimat
Copy link
Contributor

@merlimat merlimat commented Dec 1, 2020

Motivation

The test is wrong because the assertion is never checked, since we're not throwing exception when the hostname validation fails. It is also causing a segfault, because the promise object is already destroyed when the callback is triggered in background.

@codelipenghui
Copy link
Contributor

/pulsarbot run-failure-checks

@merlimat merlimat merged commit b78b01c into apache:master Dec 3, 2020
@merlimat merlimat deleted the fix-hostname-validation-test branch December 3, 2020 01:14
codelipenghui pushed a commit that referenced this pull request Dec 3, 2020
…Validation (#8771)

* [C++] Fixed flaky test: AuthPluginTest.testTlsDetectHttpsWithHostNameValidation

* Fixed test assertion

(cherry picked from commit b78b01c)
RobertIndie pushed a commit to RobertIndie/pulsar that referenced this pull request Dec 8, 2020
…Validation (apache#8771)

* [C++] Fixed flaky test: AuthPluginTest.testTlsDetectHttpsWithHostNameValidation

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

Successfully merging this pull request may close these issues.

None yet

4 participants