Skip to content

Commit

Permalink
Fix flaky test in jaegerremotesampling
Browse files Browse the repository at this point in the history
Fixes #9113

Signed-off-by: Juraci Paixão Kröhling <[email protected]>
  • Loading branch information
jpkrohling committed Apr 11, 2022
1 parent 83d292c commit 10ac705
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions extension/jaegerremotesampling/extension_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,15 @@ func TestStartAndShutdownRemote(t *testing.T) {

// create the mock server
server := grpc.NewServer()

// register the service
api_v2.RegisterSamplingManagerServer(server, &samplingServer{})

go func() {
err = server.Serve(lis)
require.NoError(t, err)
}()

// register the service
api_v2.RegisterSamplingManagerServer(server, &samplingServer{})

// create the config, pointing to the mock server
cfg := createDefaultConfig().(*Config)
cfg.Source.Remote = &configgrpc.GRPCClientSettings{
Expand Down

0 comments on commit 10ac705

Please sign in to comment.