diff options
-rw-r--r-- | internal/sshd/connection_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/sshd/connection_test.go b/internal/sshd/connection_test.go index 3a5f664..8874b07 100644 --- a/internal/sshd/connection_test.go +++ b/internal/sshd/connection_test.go @@ -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) |