3
0

More robust grpc connection testing

This commit is contained in:
Denis Arh
2020-01-28 18:51:47 +01:00
parent 5add5cbc6f
commit 2706d9f019

View File

@@ -52,7 +52,10 @@ func TestNewConnection(t *testing.T) {
wg.Add(1)
go func() {
defer wg.Done()
a.NoError(grpcServer.Serve(lstnr))
if err := grpcServer.Serve(lstnr); err != nil && err != grpc.ErrServerStopped {
a.NoError(err)
}
}()
grpcClientConn, err := NewConnection(ctx, opt, dbgLog)