Skip to content

test flake: fix flake in ApiListener integration test#9808

Merged
lizan merged 3 commits intoenvoyproxy:masterfrom
junr03:test-flake
Jan 24, 2020
Merged

test flake: fix flake in ApiListener integration test#9808
lizan merged 3 commits intoenvoyproxy:masterfrom
junr03:test-flake

Conversation

@junr03
Copy link
Copy Markdown
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