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
Unverified Commit 454ea348 authored by Patrick Bajao's avatar Patrick Bajao Committed by GitLab
Browse files

Merge branch '671-race-golang-1-x-failed-with-stdin-send-error-eof-2' into 'main'

Use GracefulStop() instead of Stop()

See merge request https://gitlab.com/gitlab-org/gitlab-shell/-/merge_requests/951



Merged-by: default avatarPatrick Bajao <ebajao@gitlab.com>
Approved-by: default avatarPatrick Bajao <ebajao@gitlab.com>
Co-authored-by: default avatarAsh McKenzie <amckenzie@gitlab.com>
parents 0986b21f eb795797
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