Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6454d15

Browse files
committed
Fix error type
1 parent 29983eb commit 6454d15

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cli/vscodessh_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ func TestVSCodeSSH(t *testing.T) {
5656
go func() {
5757
//nolint // The above seems reasonable for a one-off test.
5858
err := cmd.ExecuteContext(context.WithValue(ctx, "fs", fs))
59-
assert.NoError(t, err)
59+
if err != nil {
60+
assert.ErrorIs(t, err, context.Canceled)
61+
}
6062
close(done)
6163
}()
6264
require.Eventually(t, func() bool {

0 commit comments

Comments
 (0)