Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: ensure network are started asynchronously in InitializeAsync #42

Merged
merged 2 commits into from
Feb 3, 2025

Conversation

SebastienDegodez
Copy link
Member

@SebastienDegodez SebastienDegodez commented Jan 31, 2025

Pull Request

fix: ensure network creation in Initialize method to stabilize tests

Proposed Changes

This fix addresses random test failures encountered when a network is used, caused by a missing network creation in the Initialize method of the IAsyncLifetime interface. Tests should now execute consistently without failures due to missing network.

Readiness Checklist

Author/Contributor

  • If documentation is needed for this change, has that been included in this pull request?
  • Run dotnet test and ensure you have test coverage for the lines you are introducing.
  • Run dotnet husky run and fix any issues that you have introduced.

Reviewer

  • Label as either feature, fix, documentation, enhancement, maintenance, or breaking.

Signed-off-by: SebastienDegodez <sebastien.degodez@gmail.com>
@SebastienDegodez SebastienDegodez marked this pull request as ready for review February 1, 2025 14:11
This ensure completion mechanism works and result is received after timeout

Signed-off-by: SebastienDegodez <sebastien.degodez@gmail.com>
@SebastienDegodez
Copy link
Member Author

SebastienDegodez commented Feb 1, 2025

@lbroudoux The stopwatch was added to measure the elapsed time during the test execution. This ensures that the test waits for the specified timeout before completing. Here is a simplified version of the test with an explanation.

We had a test failure on the InProgress assertion in ShouldReturnsCorrectStatusContractWhenBadMessageIsEmitted. This is strange.

I compare with JAVA implementation, and I don't understand. The Timeout is 70.001 and the assertion use 7.000.

@lbroudoux lbroudoux added this to the 0.2.0 milestone Feb 3, 2025
Copy link
Member

@lbroudoux lbroudoux left a comment

Choose a reason for hiding this comment

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

LGTM

@lbroudoux lbroudoux merged commit 4b06a0b into microcks:main Feb 3, 2025
9 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants