Skip to content

Commit

Permalink
Fixed race.
Browse files Browse the repository at this point in the history
Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
  • Loading branch information
bwplotka committed Jun 18, 2020
1 parent f22b07a commit 739ddcc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion grpctesting/interceptor_suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ func (s *InterceptorTestSuite) SetupSuite() {
}
testpb.RegisterTestServiceServer(s.Server, s.TestService)

listener := s.ServerListener
go func() {
_ = s.Server.Serve(s.ServerListener)
_ = s.Server.Serve(listener)
}()
if s.Client == nil {
s.Client = s.NewClient(s.ClientOpts...)
Expand Down

0 comments on commit 739ddcc

Please sign in to comment.