Sfoglia il codice sorgente

Add a public initializer for `ServerSessionTestStub`, to make it actually usable in tests.

Daniel Alm 7 anni fa
parent
commit
2f93962b91
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      Sources/SwiftGRPC/Runtime/ServerSession.swift

+ 2 - 0
Sources/SwiftGRPC/Runtime/ServerSession.swift

@@ -48,4 +48,6 @@ open class ServerSessionTestStub: ServerSession {
   open var statusMessage = "OK"
   open var initialMetadata = Metadata()
   open var trailingMetadata = Metadata()
+
+  public init() {}
 }