File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ import (
13
13
"strings"
14
14
"sync"
15
15
"testing"
16
- "time"
17
16
18
17
"github.com/prometheus/client_golang/prometheus"
19
18
"github.com/spf13/afero"
@@ -193,10 +192,10 @@ func TestNewServer_CloseActiveConnections(t *testing.T) {
193
192
}
194
193
// The 60 seconds here is intended to be longer than the
195
194
// test. The shutdown should propagate.
196
- err = sess .Start ("/bin/bash -c 'trap \" sleep 60\" SIGTERM; sleep 60'" )
195
+ err = sess .Start ("/bin/bash -c 'trap \" sleep 60\" SIGTERM; echo start \" ed \" ; sleep 60'" )
197
196
assert .NoError (t , err )
198
197
199
- time . Sleep ( 100 * time . Millisecond ) // Give the session time to start.
198
+ pty . ExpectMatchContext ( ctx , "started" )
200
199
close (ch )
201
200
202
201
err = sess .Wait ()
You can’t perform that action at this time.
0 commit comments