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

Make TestKit startup timeouts configurable #7423

Merged
merged 3 commits into from
Dec 19, 2024

Conversation

Aaronontheweb
Copy link
Member

@Aaronontheweb Aaronontheweb commented Dec 19, 2024

Changes

close #7259

Checklist

For significant changes, please ensure that the following have been completed (delete if not relevant):

@Aaronontheweb Aaronontheweb added api-change akka-testkit Akka.NET Testkit issues labels Dec 19, 2024
Copy link
Member Author

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

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

Detailed my changes


# The amount of time it takes the testkit to startup
# Increase this value if you're running many tests in parallel
startup-timeout = 5s
Copy link
Member Author

Choose a reason for hiding this comment

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

New setting here - you can increase this value to give tests more time to initialize, which might be useful if you're running many in parallel.

@@ -21,6 +21,7 @@ public void DefaultValues_should_be_correct()
TestKitSettings.SingleExpectDefault.ShouldBe(TimeSpan.FromSeconds(3));
TestKitSettings.TestEventFilterLeeway.ShouldBe(TimeSpan.FromSeconds(3));
TestKitSettings.TestTimeFactor.ShouldBe(1);
TestKitSettings.TestKitStartupTimeout.ShouldBe(TimeSpan.FromSeconds(5));
Copy link
Member Author

Choose a reason for hiding this comment

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

Validate that this value can be written / overwritten via HOCON.

@Aaronontheweb Aaronontheweb enabled auto-merge (squash) December 19, 2024 18:25
@Aaronontheweb Aaronontheweb merged commit 1b2e3ab into akkadotnet:dev Dec 19, 2024
10 of 12 checks passed
@Aaronontheweb Aaronontheweb deleted the fix-7259-testkit-config branch December 19, 2024 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
akka-testkit Akka.NET Testkit issues api-change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make timeouts used in TestKit(Base) class configurable
1 participant