Browse Source

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

Daniel Alm 7 years ago
parent
commit
2f93962b91
1 changed files with 2 additions and 0 deletions
  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() {}
 }