Skip to content

test: Adopt good async practices in Flagd E2E integration tests#403

Merged
askpt merged 2 commits intoopen-feature:mainfrom
kylejuliandev:improve-flagd-e2e-async-code
May 12, 2025
Merged

test: Adopt good async practices in Flagd E2E integration tests#403
askpt merged 2 commits intoopen-feature:mainfrom
kylejuliandev:improve-flagd-e2e-async-code

Conversation

@kylejuliandev
Copy link
Contributor

This PR

  • Updates the Flagd common E2E code to adhere to better async practices, like:
    • Using await instead of .Result (can result in deadlocks)
    • Using ConfigureAwait(false) - less important in the tests but best to keep things consistent
  • Mark method as static when not accessing instance data

Related Issues

Related to #345 and #356

Notes

Follow-up Tasks

How to test

Signed-off-by: Kyle Julian <38759683+kylejuliandev@users.noreply.github.com>
@kylejuliandev kylejuliandev requested review from a team as code owners May 11, 2025 17:10
@askpt askpt merged commit 2463c30 into open-feature:main May 12, 2025
11 checks passed
@kylejuliandev kylejuliandev deleted the improve-flagd-e2e-async-code branch May 12, 2025 07:57
weyert pushed a commit to weyert/dotnet-sdk-contrib that referenced this pull request May 30, 2025
…-feature#403)

Signed-off-by: Kyle Julian <38759683+kylejuliandev@users.noreply.github.com>
Co-authored-by: André Silva <2493377+askpt@users.noreply.github.com>
Signed-off-by: Weyert de Boer <weyert@innerfuse.biz>
weyert pushed a commit to weyert/dotnet-sdk-contrib that referenced this pull request Jun 19, 2025
…-feature#403)

Signed-off-by: Kyle Julian <38759683+kylejuliandev@users.noreply.github.com>
Co-authored-by: André Silva <2493377+askpt@users.noreply.github.com>
weyert pushed a commit to weyert/dotnet-sdk-contrib that referenced this pull request Jun 19, 2025
…-feature#403)

Signed-off-by: Kyle Julian <38759683+kylejuliandev@users.noreply.github.com>
Co-authored-by: André Silva <2493377+askpt@users.noreply.github.com>
Signed-off-by: Weyert de Boer <weyert@innerfuse.biz>
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