Skip to content

Commit

Permalink
fix unstable proxy tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-emelin committed Oct 16, 2023
1 parent 0f6581d commit 651c049
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/tools/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package tools

import (
"context"
"errors"
"io"
"log"
"net/http"
Expand Down Expand Up @@ -185,7 +186,7 @@ func NewCommonGRPCProxyTestCase(ctx context.Context, srv proxyproto.CentrifugoPr
proxyproto.RegisterCentrifugoProxyServer(server, srv)

go func() {
if err := server.Serve(listener); err != nil {
if err := server.Serve(listener); err != nil && !errors.Is(err, grpc.ErrServerStopped) {
log.Fatalf("GRPC server exited with error: %v", err)
}
}()
Expand Down

0 comments on commit 651c049

Please sign in to comment.