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 9cacca57 authored by Igor Drozdov's avatar Igor Drozdov
Browse files

Merge branch 'sh-fix-flaky-race-test' into 'main'

Fix flaky race test

Closes #590

See merge request gitlab-org/gitlab-shell!670
parents aaa61b55 f5ae8fa3
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -225,9 +225,10 @@ func TestSessionsMetrics(t *testing.T) {
} {
t.Run(ignoredError.desc, func(t *testing.T) {
conn, chans = setup(1, newChannel)
ignored := ignoredError.err
conn.handleRequests(context.Background(), nil, chans, func(*ssh.ServerConn, ssh.Channel, <-chan *ssh.Request) error {
close(chans)
return ignoredError.err
return ignored
})
require.InDelta(t, initialSessionsTotal+2+float64(i), testutil.ToFloat64(metrics.SliSshdSessionsTotal), 0.1)
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