Skip to content

Commit fe142a8

Browse files
authored
fix(source/crd): increase tests timeouts (#5785)
1 parent c6ed951 commit fe142a8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

source/crd_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ func TestCRDSource_AddEventHandler_Add(t *testing.T) {
548548

549549
require.Eventually(t, func() bool {
550550
return counter.Load() == 1
551-
}, time.Second, 10*time.Millisecond)
551+
}, 2*time.Second, 10*time.Millisecond)
552552
}
553553

554554
func TestCRDSource_AddEventHandler_Update(t *testing.T) {
@@ -569,19 +569,19 @@ func TestCRDSource_AddEventHandler_Update(t *testing.T) {
569569

570570
require.Eventually(t, func() bool {
571571
return len(watcher.Items) == 1
572-
}, time.Second, 10*time.Millisecond)
572+
}, 2*time.Second, 10*time.Millisecond)
573573

574574
modified := obj.DeepCopy()
575575
modified.SetLabels(map[string]string{"new-label": "this"})
576576
watcher.Modify(modified)
577577

578578
require.Eventually(t, func() bool {
579579
return len(watcher.Items) == 1
580-
}, time.Second, 10*time.Millisecond)
580+
}, 2*time.Second, 10*time.Millisecond)
581581

582582
require.Eventually(t, func() bool {
583583
return counter.Load() == 2
584-
}, time.Second, 10*time.Millisecond)
584+
}, 2*time.Second, 10*time.Millisecond)
585585
}
586586

587587
func TestCRDSource_AddEventHandler_Delete(t *testing.T) {
@@ -600,7 +600,7 @@ func TestCRDSource_AddEventHandler_Delete(t *testing.T) {
600600

601601
require.Eventually(t, func() bool {
602602
return counter.Load() == 1
603-
}, time.Second, 10*time.Millisecond)
603+
}, 2*time.Second, 10*time.Millisecond)
604604
}
605605

606606
func TestCRDSource_Watch(t *testing.T) {
@@ -733,7 +733,7 @@ func helperCreateWatcherWithInformer(t *testing.T) (*cachetesting.FakeController
733733

734734
require.Eventually(t, func() bool {
735735
return cache.WaitForCacheSync(ctx.Done(), informer.HasSynced)
736-
}, time.Second, 10*time.Millisecond)
736+
}, 2*time.Second, 10*time.Millisecond)
737737

738738
cs := &crdSource{
739739
informer: informer,

0 commit comments

Comments
 (0)