@@ -46,7 +46,9 @@ func Test_Runner(t *testing.T) {
46
46
require .NoError (t , err )
47
47
48
48
require .Contains (t , logStr , "Output:" )
49
- require .Contains (t , logStr , "\t hello world" )
49
+ // OSX: Output:\n\thello world\n
50
+ // Win: Output:\n\t\x1b[2J\x1b[m\x1b[H\x1b]0;Administrator: C:\\Program Files\\PowerShell\\7\\pwsh.exe\a\x1b[?25hhello world\n
51
+ require .Contains (t , logStr , "hello world\n " )
50
52
})
51
53
52
54
t .Run ("NoLogOutput" , func (t * testing.T ) {
@@ -72,7 +74,6 @@ func Test_Runner(t *testing.T) {
72
74
require .NoError (t , err )
73
75
74
76
require .NotContains (t , logStr , "Output:" )
75
- require .NotContains (t , logStr , "\t hello world" )
76
77
})
77
78
78
79
t .Run ("Timeout" , func (t * testing.T ) {
@@ -88,7 +89,7 @@ func Test_Runner(t *testing.T) {
88
89
Init : codersdk.ReconnectingPTYInit {
89
90
Command : "echo 'hello world'" ,
90
91
},
91
- Timeout : httpapi .Duration (5 * time . Second ),
92
+ Timeout : httpapi .Duration (2 * testutil . WaitLong ),
92
93
LogOutput : true ,
93
94
})
94
95
@@ -166,7 +167,7 @@ func Test_Runner(t *testing.T) {
166
167
Init : codersdk.ReconnectingPTYInit {
167
168
Command : "echo 'hello world'" ,
168
169
},
169
- Timeout : httpapi .Duration (5 * time . Second ),
170
+ Timeout : httpapi .Duration (2 * testutil . WaitLong ),
170
171
ExpectTimeout : true ,
171
172
LogOutput : true ,
172
173
})
0 commit comments