hibri / HttpMock

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

HttpEndpointTest: improve a test to not be flaky #10

Closed knocte closed 11 years ago

knocte commented 11 years ago

Move the teardown part of the test into a finally block. Add a try-catch to the teardown because an exception can happen, but which shouldn't make the test fail, just produce a warning maybe.