File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -229,7 +229,11 @@ func TestNewServer_Signal(t *testing.T) {
229
229
err = sess .Wait ()
230
230
exitErr := & ssh.ExitError {}
231
231
require .ErrorAs (t , err , & exitErr )
232
- require .Equal (t , 255 , exitErr .ExitStatus ())
232
+ wantCode := 255
233
+ if runtime .GOOS == "windows" {
234
+ wantCode := 1
235
+ }
236
+ require .Equal (t , wantCode , exitErr .ExitStatus ())
233
237
})
234
238
t .Run ("PTY" , func (t * testing.T ) {
235
239
t .Parallel ()
@@ -304,7 +308,11 @@ func TestNewServer_Signal(t *testing.T) {
304
308
err = sess .Wait ()
305
309
exitErr := & ssh.ExitError {}
306
310
require .ErrorAs (t , err , & exitErr )
307
- require .Equal (t , 255 , exitErr .ExitStatus ())
311
+ wantCode := 255
312
+ if runtime .GOOS == "windows" {
313
+ wantCode := 1
314
+ }
315
+ require .Equal (t , wantCode , exitErr .ExitStatus ())
308
316
})
309
317
}
310
318
You can’t perform that action at this time.
0 commit comments