File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -130,16 +130,16 @@ func (p *ptyWindows) Close() error {
130
130
return nil
131
131
}
132
132
p .closed = true
133
- _ = p .outputWrite .Close ()
134
- _ = p .outputRead .Close ()
135
- _ = p .inputWrite .Close ()
136
- _ = p .inputRead .Close ()
137
133
138
134
ret , _ , err := procClosePseudoConsole .Call (uintptr (p .console ))
139
135
if ret < 0 {
140
136
return xerrors .Errorf ("close pseudo console: %w" , err )
141
137
}
142
138
139
+ _ = p .outputWrite .Close ()
140
+ _ = p .outputRead .Close ()
141
+ _ = p .inputWrite .Close ()
142
+ _ = p .inputRead .Close ()
143
143
return nil
144
144
}
145
145
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ type PTY struct {
126
126
func (p * PTY ) ExpectMatch (str string ) string {
127
127
p .t .Helper ()
128
128
129
- timeout , cancel := context .WithTimeout (context .Background (), testutil .WaitShort )
129
+ timeout , cancel := context .WithTimeout (context .Background (), testutil .WaitMedium )
130
130
defer cancel ()
131
131
132
132
var buffer bytes.Buffer
You can’t perform that action at this time.
0 commit comments