Commit 5b027a58 authored by k8s-merge-robot's avatar k8s-merge-robot Committed by GitHub

Merge pull request #28976 from coufon/debug_mirror_pod_test

Automatic merge from submit-queue Fix a bug in mirror pod node e2e test. Fixed a bug in test/e2e_node/mirror_pod_test.go. The function 'checkMirrorPodDisappear' returns nil even when the pod does not disappear. It should return a non-nil error. @Random-Liu
parents e576a2f7 8a4c394e
...@@ -17,6 +17,7 @@ limitations under the License. ...@@ -17,6 +17,7 @@ limitations under the License.
package e2e_node package e2e_node
import ( import (
goerrors "errors"
"fmt" "fmt"
"os" "os"
"path/filepath" "path/filepath"
...@@ -160,7 +161,7 @@ func checkMirrorPodDisappear(cl *client.Client, name, namespace string) error { ...@@ -160,7 +161,7 @@ func checkMirrorPodDisappear(cl *client.Client, name, namespace string) error {
if errors.IsNotFound(err) { if errors.IsNotFound(err) {
return nil return nil
} }
return err return goerrors.New("pod not disappear")
} }
func checkMirrorPodRunning(cl *client.Client, name, namespace string) error { func checkMirrorPodRunning(cl *client.Client, name, namespace string) error {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment