Skip to content

Commit

Permalink
fix should update daemonsetCache with the newest created kruise daemo…
Browse files Browse the repository at this point in the history
…nset pod unit test
  • Loading branch information
daimaxiaxie committed Aug 13, 2024
1 parent f47608e commit ca8fa9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controllers/state/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1483,7 +1483,7 @@ var _ = Describe("DaemonSet Controller", func() {
})
daemonsetPod1.Spec = daemonset.Spec.Template.Spec
ExpectApplied(ctx, env.Client, daemonsetPod1)
ExpectReconcileSucceeded(ctx, daemonsetController, client.ObjectKeyFromObject(daemonset))
ExpectReconcileSucceeded(ctx, kruiseDaemonSetController, client.ObjectKeyFromObject(daemonset))

Expect(cluster.GetDaemonSetPod(daemonset)).To(Equal(daemonsetPod1))

Expand Down

0 comments on commit ca8fa9c

Please sign in to comment.