Merge pull request #121176 from bzsuni/cleanup/e2e/expect_not_equal

remove deprecated framework.ExpectNotEqual for node
This commit is contained in:
Kubernetes Prow Robot 2023-10-17 02:29:06 +02:00 committed by GitHub
commit 63ae3084b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ var _ = SIGDescribe("Mount propagation", func() {
// Fail the test if the namespace is not set. We expect that the
// namespace is unique and we might delete user data if it's not.
if len(f.Namespace.Name) == 0 {
framework.ExpectNotEqual(f.Namespace.Name, "")
gomega.Expect(f.Namespace.Name).NotTo(gomega.BeEmpty())
return
}

View File

@ -69,7 +69,7 @@ func (t *SysctlUpgradeTest) Test(ctx context.Context, f *framework.Framework, do
framework.ExpectNoError(err)
}
if err == nil {
framework.ExpectNotEqual(pod.Status.Phase, v1.PodRunning)
gomega.Expect(pod.Status.Phase).NotTo(gomega.Equal(v1.PodRunning))
}
t.verifySafeSysctlWork(ctx, f)