hibri / HttpMock

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

Unable to Dispose multiple servers #43

Closed neoistheone123 closed 8 years ago

neoistheone123 commented 8 years ago

Works for two, but not for three...

at Kayak.KayakServerState.SetClosing() in h:\kayak\Kayak\Net\Server\KayakServerState.cs:line 88 at Kayak.DefaultKayakServer.Close() in h:\kayak\Kayak\Net\Server\KayakServer.cs:line 63 at Kayak.DefaultKayakServer.b__0() in h:\kayak\Kayak\Net\Server\KayakServer.cs:line 58 at Kayak.Disposable.Dispose() in h:\kayak\Kayak\Disposable.cs:line 19 at HttpMock.HttpServer.Dispose() in System.InvalidOperationException : The server was closing.

neoistheone123 commented 8 years ago

Unable to reproduce