mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 14:20:29 +01:00
Bug: FluentMockServer IsStarted after calling Start() #69
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 @alexangas on GitHub (Feb 27, 2018).
Originally assigned to: @StefH on GitHub.
Hello,
I'm calling
FluentMockServer.Start()and then check theIsStartedproperty to find which port it has bound to.However what I'm finding is, even after sleeping the thread for 5 seconds, that
IsStartedis still false. I'm expecting that callingStart()will start the server and then setIsStarted = true.It looks like the port is allocated anyway so I guess I don't need to wait for this flag, but thought I would still log this. I'm using version 1.0.2.13.
Thanks!
@StefH commented on GitHub (Feb 27, 2018):
This should work actually, I'll double check the code and unit-tests.
@StefH commented on GitHub (Feb 27, 2018):
Are you using net 452 or .net core 1.x / 2.x ?
@alexangas commented on GitHub (Feb 27, 2018):
This is under .NET Core 2.x
@StefH commented on GitHub (Feb 28, 2018):
Solved.