mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 14:20:29 +01:00
Timeouts with WireMock.Net server started in Specflow #421
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 @gourdua on GitHub (Jun 1, 2022).
Hi
We use Specflow 3 with mstest in a .NET Framework 4.7.2 project for our CI tests. Im' trying to user Wiremock.net version 1.4.43 to mock restApi Calls. So far, only Wiremock started in a separate console application is working. If i copy the same startup code directly in my stepdefinition or specflowhook, result in a timeout...
_wmserver.Url is then injected in my configuration, and the specflow is executed... i get the following error:
System.Web.HttpException: 0 : The operation has timed out
I've seen some post discussing about this but no solution provided fixed mine. adding HandleRequestsSynchronously = was one of them.
Any advice?
Thanks
@StefH commented on GitHub (Jun 1, 2022):
Can you please provide a full working example which demonstrates your issue?
@gourdua commented on GitHub (Jun 2, 2022):
Hi,
Trying to create a working example starting a new specflow project in Visual studio 2019 kinda clean specflow, i cannot reproduce the problem.
We are working with legacy specflow project file on my team(created years ago, maybe with VS 2012), and cannot pinpoint what exactly is causing this...
@gourdua commented on GitHub (Jun 2, 2022):
Hi again!
Just found out we were missing 4 bindings redirects.
But somehow, that was causing the hang instead of throwing exception. I found out debuging and activating full Exception Break Logging on CLR Exception.
"System.Numerics.Vectors"
"System.Buffers"
"System.Runtime.CompilerServices.Unsafe"
"System.Threading.Tasks.Extensions"
hope this is helpful to someone one day...