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

Fix flaky test TestServiceLegacy #258

Merged

Conversation

sunjayBhatia
Copy link
Member

User deferred barrier.signal() so panic definitely occurs before
we continue on in test.

Config reload uses recover() and increments config load counter, tests
were failing to see config load error counter increment.

Fixes: #256

User deferred barrier.signal() so panic definitely occurs before
we continue on in test.

Config reload uses recover() and increments config load counter, tests
were failing to see config load error counter increment.

Fixes: envoyproxy#256

Signed-off-by: Sunjay Bhatia <[email protected]>
Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Thanks!

@mattklein123 mattklein123 merged commit 60c8eb0 into envoyproxy:main May 25, 2021
@sunjayBhatia sunjayBhatia deleted the fix-flaky-test-TestServiceLegacy branch May 25, 2021 21:33
storozhukBM pushed a commit to storozhukBM/ratelimit-1 that referenced this pull request May 28, 2021
User deferred barrier.signal() so panic definitely occurs before
we continue on in test.

Config reload uses recover() and increments config load counter, tests
were failing to see config load error counter increment.

Fixes: envoyproxy#256

Signed-off-by: Sunjay Bhatia <[email protected]>
Signed-off-by: bstorozhuk <[email protected]>
@pradnic pradnic mentioned this pull request Jun 2, 2021
zdmytriv pushed a commit to verygoodsecurity/ratelimit that referenced this pull request Aug 2, 2021
User deferred barrier.signal() so panic definitely occurs before
we continue on in test.

Config reload uses recover() and increments config load counter, tests
were failing to see config load error counter increment.

Fixes: envoyproxy#256

Signed-off-by: Sunjay Bhatia <[email protected]>
timcovar pushed a commit to goatapp/ratelimit that referenced this pull request Jan 16, 2024
User deferred barrier.signal() so panic definitely occurs before
we continue on in test.

Config reload uses recover() and increments config load counter, tests
were failing to see config load error counter increment.

Fixes: envoyproxy#256

Signed-off-by: Sunjay Bhatia <[email protected]>
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.

Flaky test: ratelimit_legacy_test.go:157: TestServiceLegacy
2 participants