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

Bug: FluentMockServer IsStarted after calling Start() #93

Closed
alexangas opened this issue Feb 27, 2018 · 4 comments
Closed

Bug: FluentMockServer IsStarted after calling Start() #93

alexangas opened this issue Feb 27, 2018 · 4 comments
Assignees

Comments

@alexangas
Copy link
Collaborator

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!

@StefH
Copy link
Collaborator

StefH commented Feb 27, 2018

This should work actually, I'll double check the code and unit-tests.

@StefH StefH self-assigned this Feb 27, 2018
@StefH StefH changed the title FluentMockServer IsStarted after calling Start() BUg: FluentMockServer IsStarted after calling Start() Feb 27, 2018
@StefH StefH changed the title BUg: FluentMockServer IsStarted after calling Start() Bug: FluentMockServer IsStarted after calling Start() Feb 27, 2018
@StefH
Copy link
Collaborator

StefH commented Feb 27, 2018

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

@alexangas
Copy link
Collaborator Author

This is under .NET Core 2.x

StefH added a commit that referenced this issue Feb 28, 2018
@StefH
Copy link
Collaborator

StefH commented Feb 28, 2018

Solved.

@StefH StefH closed this as completed Feb 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants