@@ -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 ()
@@ -40,7 +36,7 @@ func Test_Runner(t *testing.T) {
40
36
LogOutput : true ,
41
37
})
42
38
43
- ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitLong )
39
+ ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitSuperLong )
44
40
defer cancel ()
45
41
46
42
logs := bytes .NewBuffer (nil )
@@ -68,7 +64,7 @@ func Test_Runner(t *testing.T) {
68
64
LogOutput : false ,
69
65
})
70
66
71
- ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitLong )
67
+ ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitSuperLong )
72
68
defer cancel ()
73
69
74
70
logs := bytes .NewBuffer (nil )
@@ -93,11 +89,11 @@ func Test_Runner(t *testing.T) {
93
89
Init : codersdk.ReconnectingPTYInit {
94
90
Command : "echo 'hello world'" ,
95
91
},
96
- Timeout : httpapi .Duration (2 * testutil .WaitLong ),
92
+ Timeout : httpapi .Duration (2 * testutil .WaitSuperLong ),
97
93
LogOutput : true ,
98
94
})
99
95
100
- ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitLong )
96
+ ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitSuperLong )
101
97
defer cancel ()
102
98
103
99
logs := bytes .NewBuffer (nil )
@@ -121,7 +117,7 @@ func Test_Runner(t *testing.T) {
121
117
LogOutput : true ,
122
118
})
123
119
124
- ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitLong )
120
+ ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitSuperLong )
125
121
defer cancel ()
126
122
127
123
logs := bytes .NewBuffer (nil )
@@ -151,7 +147,7 @@ func Test_Runner(t *testing.T) {
151
147
LogOutput : true ,
152
148
})
153
149
154
- ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitLong )
150
+ ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitSuperLong )
155
151
defer cancel ()
156
152
157
153
logs := bytes .NewBuffer (nil )
@@ -171,12 +167,12 @@ func Test_Runner(t *testing.T) {
171
167
Init : codersdk.ReconnectingPTYInit {
172
168
Command : "echo 'hello world'" ,
173
169
},
174
- Timeout : httpapi .Duration (2 * testutil .WaitLong ),
170
+ Timeout : httpapi .Duration (2 * testutil .WaitSuperLong ),
175
171
ExpectTimeout : true ,
176
172
LogOutput : true ,
177
173
})
178
174
179
- ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitLong )
175
+ ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitSuperLong )
180
176
defer cancel ()
181
177
182
178
logs := bytes .NewBuffer (nil )
@@ -205,7 +201,7 @@ func Test_Runner(t *testing.T) {
205
201
LogOutput : false ,
206
202
})
207
203
208
- ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitLong )
204
+ ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitSuperLong )
209
205
defer cancel ()
210
206
211
207
logs := bytes .NewBuffer (nil )
@@ -229,7 +225,7 @@ func Test_Runner(t *testing.T) {
229
225
LogOutput : false ,
230
226
})
231
227
232
- ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitLong )
228
+ ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitSuperLong )
233
229
defer cancel ()
234
230
235
231
logs := bytes .NewBuffer (nil )
0 commit comments