hibri / HttpMock

A library for creating Http servers on the fly in tests and stubbing responses
MIT License
128 stars 44 forks source link

HttpServerFactory: allow getting a 2nd server in the same port #13

Closed knocte closed 11 years ago

knocte commented 11 years ago

Even if disposing the previous server, HttpServerFactory class was not allowing to create a new server in the same port.

hibri commented 11 years ago

Why would you want to create a second server on the same port ? Shouldn't be able to. One listening socket, one listening port

knocte commented 11 years ago

Look at my test more deeply: I create the 2nd server on the same port AFTER disposing the first server.

hibri commented 11 years ago

Was going by the title. Looks good. On 14 Dec 2012, at 19:20, "Andres G. Aragoneses" notifications@github.com wrote:

Look at my test more deeply: I create the 2nd server on the same port AFTER disposing the first server.

— Reply to this email directly or view it on GitHub.