Fix test cases that may potentially cause a panic.

Kubernetes-commit: 9e53371ddaaeab4083fde45e43c803071238e686
This commit is contained in:
novahe 2025-03-11 17:41:37 +08:00 committed by Kubernetes Publisher
parent 53d3609209
commit 670a59a8dc
1 changed files with 1 additions and 0 deletions

View File

@ -350,6 +350,7 @@ func runRemoteCommandTest(t *testing.T, commandType string) {
exec, err := remotecommand.NewSPDYExecutor(&restclient.Config{}, "POST", reqURL)
if err != nil {
t.Errorf("unexpected error %v", err)
return
}
opts := remotecommand.StreamOptions{