mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
Fix a bug in mirror pod node e2e test.
This commit is contained in:
parent
30c43e63af
commit
8a4c394ede
@ -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 {
|
|||||||
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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user