8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d0fe1f8 + 98c05b3 commit 3010c77Copy full SHA for 3010c77
agent/agentssh/agentssh_test.go
@@ -13,6 +13,7 @@ import (
13
"strings"
14
"sync"
15
"testing"
16
+ "time"
17
18
"github.com/prometheus/client_golang/prometheus"
19
"github.com/spf13/afero"
@@ -200,7 +201,11 @@ func TestNewServer_CloseActiveConnections(t *testing.T) {
200
201
}
202
assert.NoError(t, err)
203
204
+ // Allow the session to settle (i.e. reach echo).
205
pty.ExpectMatchContext(ctx, "started")
206
+ // Sleep a bit to ensure the sleep has started.
207
+ time.Sleep(testutil.IntervalMedium)
208
+
209
close(ch)
210
211
err = sess.Wait()
0 commit comments