Skip to content

Commit a7db0b9

Browse files
committed
use SearchWithContext instead of deprecated Search
1 parent ad0038b commit a7db0b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/manager/manager_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1819,7 +1819,7 @@ var _ = Describe("manger.Manager", func() {
18191819
<-m.Elected()
18201820

18211821
Eventually(func() *corev1.Event {
1822-
evts, err := clientset.CoreV1().Events("").Search(m.GetScheme(), &ns)
1822+
evts, err := clientset.CoreV1().Events("").SearchWithContext(ctx, m.GetScheme(), &ns)
18231823
Expect(err).NotTo(HaveOccurred())
18241824

18251825
for i, evt := range evts.Items {

0 commit comments

Comments
 (0)