mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-24 04:38:00 +00:00
Allocation tests currently use a func that takes a promise to create the stream multiplexer. However, we also provide a different API that doesn't require a promise and instead returns an `EventLoopFuture<Channel>`. We don't currently have allocation tests for the latter, so this PR duplicates the current H2 tests but uses the non-promise API to create the multiplexer. I also had to add a new method on the old H2 multiplexer to conform to a test protocol.