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

System.ArgumentOutOfRangeException when Timeout.InfiniteTimeSpan used as an argument for IResponseBuilder.WithDelay() #744

Closed
xzxzxc opened this issue Apr 7, 2022 · 1 comment
Assignees
Labels

Comments

@xzxzxc
Copy link

xzxzxc commented Apr 7, 2022

Describe the bug

Next code fails with
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter 'delay')

Response.Create().WithDelay(Timeout.InfiniteTimeSpan);

Expected behavior:

Method WithDelay should allow infinite timeout.

Other related info

WireMock.Net version 1.4.40

@xzxzxc xzxzxc added the bug label Apr 7, 2022
@StefH
Copy link
Collaborator

StefH commented Apr 11, 2022

InfiniteTimeSpan is a long time ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants