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

test flake: fix flake in ApiListener integration test #9808

Merged
merged 3 commits into from
Jan 24, 2020
Merged

test flake: fix flake in ApiListener integration test #9808

merged 3 commits into from
Jan 24, 2020

Conversation

junr03
Copy link
Member

@junr03 junr03 commented Jan 23, 2020

Description: previously the test was not waiting for the expectation on the server's thread to complete. Therefore, there was a use after free race condition with the ApiListener's TlsCachingDateProvider. This PR makes it so that the test waits for the expectation to be fulfilled and thus prevents the race.
Risk Level: low
Testing: ran integration test a few thousand times locally on a linux machine.

Fixes #9746

Jose Nino added 2 commits January 22, 2020 14:03
Signed-off-by: Jose Nino <jnino@lyft.com>
Signed-off-by: Jose Nino <jnino@lyft.com>
fmt
Signed-off-by: Jose Nino <jnino@lyft.com>
@lizan lizan merged commit ad48ac0 into envoyproxy:master Jan 24, 2020
antoniovicente pushed a commit to antoniovicente/envoy that referenced this pull request Sep 29, 2020
Description: previously the test was not waiting for the expectation on the server's thread to complete. Therefore, there was a use after free race condition with the ApiListener's TlsCachingDateProvider. This PR makes it so that the test waits for the expectation to be fulfilled  and thus prevents the race.
Risk Level: low
Testing: ran integration test a few thousand times locally on a linux machine.

Fixes envoyproxy#9746

Signed-off-by: Jose Nino <jnino@lyft.com>

Signed-off-by: Antonio Vicente <avd@google.com>
mattklein123 pushed a commit that referenced this pull request Sep 29, 2020
…est (#9808) (#13316)

Description: previously the test was not waiting for the expectation on the server's thread to complete. Therefore, there was a use after free race condition with the ApiListener's TlsCachingDateProvider. This PR makes it so that the test waits for the expectation to be fulfilled  and thus prevents the race.
Risk Level: low
Testing: ran integration test a few thousand times locally on a linux machine.

Signed-off-by: Jose Nino <jnino@lyft.com>
Signed-off-by: Antonio Vicente <avd@google.com>
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.

//test/integration:api_listener_integration_test flakes
2 participants