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

Allow for customizing default timeout #47

Open
swift-student opened this issue Feb 28, 2025 · 0 comments
Open

Allow for customizing default timeout #47

swift-student opened this issue Feb 28, 2025 · 0 comments

Comments

@swift-student
Copy link
Contributor

Right now for confirmationOfCall we default the timeLimit to infinity (well, essentially infinity, Task.sleep doesn't handle anything over about Int32.max). This aligns with Apple's defaults for test timeouts like in XCTestExpectation:

fulfillment(of expectations: [XCTestExpectation], timeout seconds: TimeInterval = .infinity

I think this makes sense, as we don't want to set some arbitrary short timeout, but we should add the ability to change this default so that each consumer of TestDRS can decide on their own strategy without needing to specify timeouts on each use of confirmationOfCall.

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

No branches or pull requests

1 participant