mirror of
https://github.com/swift-server/async-http-client.git
synced 2026-06-02 07:37:34 +00:00
### Motivation Our actual HTTPRequestExecutors send out an HTTPRequest as soon as they see it and they call `willExecuteRequest` and `requestHeadSent` in very fast succession on the `HTTPExecutableRequest`. We should have the same behavior in tests. ### Changes - Call `requestHeadSent` from `MockRequestExecutor.runRequest` - Tests that use `MockRequestExecutor` call `runRequest` on it first ### Result Cleaner, more life like tests