Ver código fonte

Remove workaround for issue #43 (#63)

This has been resolved in https://github.com/apple/swift-nio/pull/3032
and the fix is present in NIO since 2.78.0, which this package already
depends on. Removing workaround in tests.
Gus Cairo 10 meses atrás
pai
commit
aaeba93e58

+ 0 - 4
Tests/GRPCNIOTransportHTTP2Tests/HTTP2TransportTests.swift

@@ -1392,8 +1392,6 @@ final class HTTP2TransportTests: XCTestCase {
       let request = ClientRequest(message: input)
       try await control.serverStream(request: request) { response in
         XCTAssertEqual(Array(response.metadata["echo-scheme"]), ["http"])
-        // Workaround https://github.com/grpc/grpc-swift-nio-transport/issues/43
-        for try await _ in response.messages {}
       }
     }
   }
@@ -1424,8 +1422,6 @@ final class HTTP2TransportTests: XCTestCase {
       }
       try await control.bidiStream(request: request) { response in
         XCTAssertEqual(Array(response.metadata["echo-scheme"]), ["http"])
-        // Workaround https://github.com/grpc/grpc-swift-nio-transport/issues/43
-        for try await _ in response.messages {}
       }
     }
   }