test: Write URL after signal listen to fix flake (#2456)

The URL could be read before the signal was listening, causing
this test to flake: https://github.com/coder/coder/runs/6936820170?check_suite_focus=true
This commit is contained in:
Kyle Carberry
2022-06-17 09:16:45 -05:00
committed by GitHub
parent f09ab03baf
commit 7cce7a9c69
2 changed files with 7 additions and 6 deletions

View File

@ -96,7 +96,7 @@ func (api *API) ListenProvisionerDaemon(ctx context.Context) (client proto.DRPCP
},
})
go func() {
err = server.Serve(ctx, serverSession)
err := server.Serve(ctx, serverSession)
if err != nil && !xerrors.Is(err, io.EOF) {
api.Logger.Debug(ctx, "provisioner daemon disconnected", slog.Error(err))
}