mirror of
https://github.com/swift-server/async-http-client.git
synced 2026-05-03 07:32:29 +00:00
Improve test utils for running request (#512)
### Motivation To land support for async/await, we need test utilities. We already have a `MockRequestExecutor`. Let's improve this to better handle on and off `EventLoop` request processing. ### Changes - Move `MockRequestExecutor` into its own file - Add blocking APIs to `MockRequestExecutor` when called from another thread
This commit is contained in:
@@ -641,7 +641,7 @@ internal struct HTTPResponseBuilder {
|
||||
}
|
||||
}
|
||||
|
||||
internal struct RequestInfo: Codable {
|
||||
internal struct RequestInfo: Codable, Equatable {
|
||||
var data: String
|
||||
var requestNumber: Int
|
||||
var connectionNumber: Int
|
||||
|
||||
Reference in New Issue
Block a user