As we reevaluate how to best support and maintain Staging Ref in the future, we encourage development teams using this environment to highlight their use cases in the following issue: https://gitlab.com/gitlab-com/gl-infra/software-delivery/framework/software-delivery-framework-issue-tracker/-/issues/36.

Skip to content
Snippets Groups Projects
Commit eb795797 authored by Ash McKenzie's avatar Ash McKenzie
Browse files

Use GracefulStop() instead of Stop()

parent 0986b21f
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -130,7 +130,7 @@ func doStartTestServer(t *testing.T, network string, path string) (string, *Test
go func() {
require.NoError(t, server.Serve(listener))
}()
t.Cleanup(func() { server.Stop() })
t.Cleanup(func() { server.GracefulStop() })
return listener.Addr().String(), &testServer
}
Loading
Loading
@@ -22,8 +22,8 @@ func TestAllowedAccess(t *testing.T) {
cmd.Config.GitalyClient.InitSidechannelRegistry(context.Background())
ctxWithLogData, err := cmd.Execute(context.Background())
require.NoError(t, err)
data := ctxWithLogData.Value("logData").(command.LogData)
require.Equal(t, "alex-doe", data.Username)
require.Equal(t, "group/project-path", data.Meta.Project)
Loading
Loading
Loading
Loading
@@ -22,8 +22,8 @@ func TestAllowedAccess(t *testing.T) {
cmd.Config.GitalyClient.InitSidechannelRegistry(context.Background())
ctxWithLogData, err := cmd.Execute(context.Background())
require.NoError(t, err)
data := ctxWithLogData.Value("logData").(command.LogData)
require.Equal(t, "alex-doe", data.Username)
require.Equal(t, "group/project-path", data.Meta.Project)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment