Skip to content

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.

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