@@ -47,7 +47,7 @@ func create(t *testing.T, ptty pty.PTY, name string) *PTY {
47
47
logDone := make (chan struct {})
48
48
logr , logw := io .Pipe ()
49
49
t .Cleanup (func () {
50
- ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitShort )
50
+ ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitMedium )
51
51
defer cancel ()
52
52
53
53
_ = logw .Close ()
@@ -69,7 +69,7 @@ func create(t *testing.T, ptty pty.PTY, name string) *PTY {
69
69
_ = out .closeErr (err )
70
70
}()
71
71
t .Cleanup (func () {
72
- ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitShort )
72
+ ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitMedium )
73
73
defer cancel ()
74
74
75
75
// Close pty only so that the copy goroutine can consume the
@@ -202,7 +202,7 @@ func logf(t *testing.T, name, format string, args ...interface{}) {
202
202
func fatalf (t * testing.T , name , reason , format string , args ... interface {}) {
203
203
t .Helper ()
204
204
205
- t .Fatal ( fmt . Sprintf ( "%s: %s %s" , name , reason , fmt .Sprintf (format , args ... ) ))
205
+ t .Fatalf ( "%s: %s %s" , name , reason , fmt .Sprintf (format , args ... ))
206
206
}
207
207
208
208
// stdbuf is like a buffered stdout, it buffers writes until read.
0 commit comments