@@ -3,7 +3,6 @@ package reconnectingpty_test
3
3
import (
4
4
"bytes"
5
5
"context"
6
- "runtime"
7
6
"testing"
8
7
"time"
9
8
@@ -23,9 +22,6 @@ import (
23
22
24
23
func Test_Runner (t * testing.T ) {
25
24
t .Parallel ()
26
- if runtime .GOOS != "linux" {
27
- t .Skip ("PTY is flakey on non-Linux platforms" )
28
- }
29
25
30
26
t .Run ("OK" , func (t * testing.T ) {
31
27
t .Parallel ()
@@ -81,7 +77,6 @@ func Test_Runner(t *testing.T) {
81
77
82
78
t .Run ("Timeout" , func (t * testing.T ) {
83
79
t .Parallel ()
84
- t .Skip ("Flaky: https://github.com/coder/coder/issues/5187" )
85
80
86
81
t .Run ("NoTimeout" , func (t * testing.T ) {
87
82
t .Parallel ()
@@ -97,7 +92,7 @@ func Test_Runner(t *testing.T) {
97
92
LogOutput : true ,
98
93
})
99
94
100
- ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitShort )
95
+ ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitLong )
101
96
defer cancel ()
102
97
103
98
logs := bytes .NewBuffer (nil )
@@ -121,7 +116,7 @@ func Test_Runner(t *testing.T) {
121
116
LogOutput : true ,
122
117
})
123
118
124
- ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitShort )
119
+ ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitLong )
125
120
defer cancel ()
126
121
127
122
logs := bytes .NewBuffer (nil )
@@ -151,7 +146,7 @@ func Test_Runner(t *testing.T) {
151
146
LogOutput : true ,
152
147
})
153
148
154
- ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitShort )
149
+ ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitLong )
155
150
defer cancel ()
156
151
157
152
logs := bytes .NewBuffer (nil )
@@ -176,7 +171,7 @@ func Test_Runner(t *testing.T) {
176
171
LogOutput : true ,
177
172
})
178
173
179
- ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitShort )
174
+ ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitLong )
180
175
defer cancel ()
181
176
182
177
logs := bytes .NewBuffer (nil )
@@ -190,7 +185,6 @@ func Test_Runner(t *testing.T) {
190
185
191
186
t .Run ("ExpectOutput" , func (t * testing.T ) {
192
187
t .Parallel ()
193
- t .Skip ("Flaky: https://github.com/coder/coder/issues/5187" )
194
188
195
189
t .Run ("Matches" , func (t * testing.T ) {
196
190
t .Parallel ()
@@ -206,7 +200,7 @@ func Test_Runner(t *testing.T) {
206
200
LogOutput : false ,
207
201
})
208
202
209
- ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitShort )
203
+ ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitLong )
210
204
defer cancel ()
211
205
212
206
logs := bytes .NewBuffer (nil )
@@ -230,7 +224,7 @@ func Test_Runner(t *testing.T) {
230
224
LogOutput : false ,
231
225
})
232
226
233
- ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitShort )
227
+ ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitLong )
234
228
defer cancel ()
235
229
236
230
logs := bytes .NewBuffer (nil )
0 commit comments