Explorar el Código

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

Daniel Alm hace 7 años
padre
commit
2f93962b91
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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() {}
 }