remove deprecated framework.ExpectNotEqual for node

Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
This commit is contained in:
bzsuni 2023-10-12 18:59:25 +08:00
parent 963178207a
commit 5683660830
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)