Fix test cases that may potentially cause a panic.
Kubernetes-commit: 9e53371ddaaeab4083fde45e43c803071238e686
This commit is contained in:
parent
53d3609209
commit
670a59a8dc
|
@ -350,6 +350,7 @@ func runRemoteCommandTest(t *testing.T, commandType string) {
|
||||||
exec, err := remotecommand.NewSPDYExecutor(&restclient.Config{}, "POST", reqURL)
|
exec, err := remotecommand.NewSPDYExecutor(&restclient.Config{}, "POST", reqURL)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("unexpected error %v", err)
|
t.Errorf("unexpected error %v", err)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
opts := remotecommand.StreamOptions{
|
opts := remotecommand.StreamOptions{
|
||||||
|
|
Loading…
Reference in New Issue