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

ci: enabling ci tests after fixing test race condition #260

Merged
merged 1 commit into from
Mar 15, 2024

Conversation

tanderson-ld
Copy link
Contributor

Related issues

236700

Describe the solution you've provided

Eliminated recording of evaluation GET command which was leading to race condition in unit tests.

Copy link

This pull request has been linked to Shortcut Story #234641: Android release please.

@tanderson-ld tanderson-ld marked this pull request as ready for review March 15, 2024 21:15
@tanderson-ld tanderson-ld requested a review from a team March 15, 2024 21:15
@@ -257,21 +257,16 @@ public void testEventContainsAutoEnvAttributesWhenEnabled() throws Exception {
.diagnosticOptOut(true)
.serviceEndpoints(Components.serviceEndpoints()
.events(baseUrl.uri())
.streaming(baseUrl.uri())
.polling(baseUrl.uri())
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was the root cause of the issue. It was resulting in flag evaluation requests getting sent to the same place as events during the test. This results in a race condition between checking the event request.

@tanderson-ld tanderson-ld requested review from keelerm84 and removed request for louis-launchdarkly March 15, 2024 21:16
@tanderson-ld tanderson-ld merged commit aad01e7 into main Mar 15, 2024
2 checks passed
@tanderson-ld tanderson-ld deleted the ta/sc-234641/fixing-ci-testing branch March 15, 2024 21:18
@tanderson-ld tanderson-ld requested a review from a team March 15, 2024 21:18
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