Commit 8a4c394e authored by coufong's avatar coufong Committed by Zhou Fang

Fix a bug in mirror pod node e2e test.

parent 30c43e63
...@@ -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