From f994174f75d5901ed9b654848dc8383d761e95d5 Mon Sep 17 00:00:00 2001 From: LiHui Date: Fri, 6 May 2022 10:14:32 +0800 Subject: [PATCH 1/2] Fix: e2e test failed --- test/e2e/groups.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/groups.go b/test/e2e/groups.go index 852c17f79..b04d0dcd8 100644 --- a/test/e2e/groups.go +++ b/test/e2e/groups.go @@ -126,10 +126,10 @@ func createUserWithWait(f framework.KubeSphereFramework, c client.Client, userna framework.Failf("Cannot retrieve User %q: %v", username, err) return false, err } - if u == nil || u.Status.State == nil { + if u == nil || u.Status.State == "" { return false, nil } - return *u.Status.State == v1alpha2.UserActive, nil + return u.Status.State == v1alpha2.UserActive, nil }) if err != nil { From 3a681a28c63d404ed1e8745d3f23b325a8c7c3bf Mon Sep 17 00:00:00 2001 From: LiHui Date: Fri, 6 May 2022 14:30:26 +0800 Subject: [PATCH 2/2] update kind image --- .github/workflows/kind/kind.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/kind/kind.yaml b/.github/workflows/kind/kind.yaml index 4179d133b..ee37db117 100644 --- a/.github/workflows/kind/kind.yaml +++ b/.github/workflows/kind/kind.yaml @@ -2,7 +2,7 @@ kind: Cluster apiVersion: kind.x-k8s.io/v1alpha4 nodes: - role: control-plane - image: kindest/node:v1.19.7 + image: kindest/node:v1.21.1 extraMounts: - hostPath: /etc/localtime containerPath: /etc/localtime