mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 14:20:29 +01:00
System.ArgumentOutOfRangeException when Timeout.InfiniteTimeSpan used as an argument for IResponseBuilder.WithDelay() #415
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @xzxzxc on GitHub (Apr 7, 2022).
Originally assigned to: @StefH on GitHub.
Describe the bug
Next code fails with
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter 'delay')Expected behavior:
Method
WithDelayshould allow infinite timeout.Other related info
WireMock.Net version 1.4.40
@StefH commented on GitHub (Apr 11, 2022):
InfiniteTimeSpan is a long time ;-)