mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
stop using deprecated framework.ExpectNotEqual
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
This commit is contained in:
@@ -373,7 +373,7 @@ var _ = SIGDescribe("Daemon set [Serial]", func() {
|
||||
waitForHistoryCreated(ctx, c, ns, label, 2)
|
||||
cur := curHistory(listDaemonHistories(ctx, c, ns, label), ds)
|
||||
framework.ExpectEqual(cur.Revision, int64(2))
|
||||
framework.ExpectNotEqual(cur.Labels[appsv1.DefaultDaemonSetUniqueLabelKey], firstHash)
|
||||
gomega.Expect(cur.Labels).NotTo(gomega.HaveKeyWithValue(appsv1.DefaultDaemonSetUniqueLabelKey, firstHash))
|
||||
checkDaemonSetPodsLabels(listDaemonPods(ctx, c, ns, label), firstHash)
|
||||
})
|
||||
|
||||
@@ -486,9 +486,9 @@ var _ = SIGDescribe("Daemon set [Serial]", func() {
|
||||
if len(schedulableNodes.Items) < 2 {
|
||||
framework.ExpectEqual(len(existingPods), 0)
|
||||
} else {
|
||||
framework.ExpectNotEqual(len(existingPods), 0)
|
||||
gomega.Expect(existingPods).NotTo(gomega.BeEmpty())
|
||||
}
|
||||
framework.ExpectNotEqual(len(newPods), 0)
|
||||
gomega.Expect(newPods).NotTo(gomega.BeEmpty())
|
||||
|
||||
framework.Logf("Roll back the DaemonSet before rollout is complete")
|
||||
rollbackDS, err := updateDaemonSetWithRetries(ctx, c, ns, ds.Name, func(update *appsv1.DaemonSet) {
|
||||
|
||||
Reference in New Issue
Block a user