KaneCheshire / Peasy

A pure Swift mock server for embedding and running directly within iOS/macOS UI tests. Easy peasy.
MIT License
38 stars 10 forks source link

Ignore errors for `EV_DELETE` in `EventListener` #36

Open corteggo opened 1 year ago

corteggo commented 1 year ago

During tests execution, we've experienced the following error multiple times:

Peasy/EventListener.swift:51: Fatal error: No such file or directory

Environment:

After debugging, we noticed this is eventually received upon server.stop() invocation. The server was being started without any specific port, so Peasy looked for an available one. The fatalError invocation causes the test execution to fail even when tests pass.

In my opinion, this can be ignored for EV_DELETE. server.stop() is usually invoked within tearDown() so whatever happens to server while stopping is irrelevant for test execution results.