소스 검색

Fix deprecation warnings (#1430)

George Barnett 3 년 전
부모
커밋
c57bdcb8a6
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      Tests/GRPCTests/StreamResponseHandlerRetainCycleTests.swift
  2. 1 1
      Tests/GRPCTests/WithConnectedSocketTests.swift

+ 2 - 2
Tests/GRPCTests/StreamResponseHandlerRetainCycleTests.swift

@@ -26,7 +26,7 @@ final class StreamResponseHandlerRetainCycleTests: GRPCTestCase {
   var server: Server!
   var client: ClientConnection!
 
-  var echo: Echo_EchoClient!
+  var echo: Echo_EchoNIOClient!
 
   override func setUp() {
     super.setUp()
@@ -42,7 +42,7 @@ final class StreamResponseHandlerRetainCycleTests: GRPCTestCase {
       .withBackgroundActivityLogger(self.clientLogger)
       .connect(host: "localhost", port: self.server.channel.localAddress!.port!)
 
-    self.echo = Echo_EchoClient(
+    self.echo = Echo_EchoNIOClient(
       channel: self.client,
       defaultCallOptions: CallOptions(logger: self.clientLogger)
     )

+ 1 - 1
Tests/GRPCTests/WithConnectedSocketTests.swift

@@ -62,7 +62,7 @@ class WithConnectedSockettests: GRPCTestCase {
       XCTAssertNoThrow(try connection.close().wait())
     }
 
-    let client = Echo_EchoClient(channel: connection)
+    let client = Echo_EchoNIOClient(channel: connection)
     let resp = try client.get(Echo_EchoRequest(text: "Hello")).response.wait()
     XCTAssertEqual(resp.text, "Swift echo get: Hello")
   }