Skip to content

Commit c4cea00

Browse files
committed
Remove deprecated framework.ExpectEqual from e2e.go
1 parent c02affe commit c4cea00

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/e2e/e2e.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"time"
1212

1313
ginkgo "github.com/onsi/ginkgo/v2"
14+
"github.com/onsi/gomega"
1415
"k8s.io/apimachinery/pkg/util/rand"
1516
"k8s.io/kubernetes/test/e2e/framework/kubectl"
1617

@@ -474,7 +475,7 @@ var _ = ginkgo.Describe("[efs-csi] EFS CSI", func() {
474475
perms, _, err := e2evolume.PodExec(f, pod, "stat -c \"%a\" "+provisionedPath)
475476
framework.ExpectNoError(err, "ran stat command in /mnt/volume1 to get folder permissions")
476477
framework.Logf("Perms Output: %s", perms)
477-
framework.ExpectEqual(perms, fmt.Sprintf("%d", 777), "Checking File Permissions of mounted folder")
478+
gomega.Expect(perms).To(gomega.Equal(fmt.Sprintf("%d", 777)), "Checking File Permissions of mounted folder")
478479

479480
_ = f.ClientSet.CoreV1().Pods(f.Namespace.Name).Delete(context.TODO(), pod.Name, metav1.DeleteOptions{})
480481
})

0 commit comments

Comments
 (0)