Skip to content

Commit 24ff884

Browse files
committed
fix: ignore EOF eror in SSH handler
1 parent f4a54aa commit 24ff884

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/provider/git_test.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@ func startSSHServer(ctx context.Context, t testing.TB) string {
149149

150150
err = s.Exit(cmd.ProcessState.ExitCode())
151151
if err != nil {
152-
t.Logf("session exit failed: %s", err)
152+
if !errors.Is(err, io.EOF) {
153+
t.Errorf("session exit failed: %s", err)
154+
}
153155
}
154156
},
155157
}

0 commit comments

Comments
 (0)