Bug: FluentMockServer IsStarted after calling Start() #69

Closed
opened 2025-12-29 14:21:56 +01:00 by adam · 4 comments
Owner

Originally created by @alexangas on GitHub (Feb 27, 2018).

Originally assigned to: @StefH on GitHub.

Hello,

I'm calling FluentMockServer.Start() and then check the IsStarted property to find which port it has bound to.

However what I'm finding is, even after sleeping the thread for 5 seconds, that IsStarted is still false. I'm expecting that calling Start() will start the server and then set IsStarted = 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!

Originally created by @alexangas on GitHub (Feb 27, 2018). Originally assigned to: @StefH on GitHub. Hello, I'm calling `FluentMockServer.Start()` and then check the `IsStarted` property to find which port it has bound to. However what I'm finding is, even after sleeping the thread for 5 seconds, that `IsStarted` is still false. I'm expecting that calling `Start()` will start the server and then set `IsStarted = 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!
adam closed this issue 2025-12-29 14:21:56 +01:00
Author
Owner

@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): This should work actually, I'll double check the code and unit-tests.
Author
Owner

@StefH commented on GitHub (Feb 27, 2018):

Are you using net 452 or .net core 1.x / 2.x ?

@StefH commented on GitHub (Feb 27, 2018): Are you using net 452 or .net core 1.x / 2.x ?
Author
Owner

@alexangas commented on GitHub (Feb 27, 2018):

This is under .NET Core 2.x

@alexangas commented on GitHub (Feb 27, 2018): This is under .NET Core 2.x
Author
Owner

@StefH commented on GitHub (Feb 28, 2018):

Solved.

@StefH commented on GitHub (Feb 28, 2018): Solved.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net-wiremock#69