Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions source/crd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ func TestCRDSource_AddEventHandler_Add(t *testing.T) {

require.Eventually(t, func() bool {
return counter.Load() == 1
}, time.Second, 10*time.Millisecond)
}, 2*time.Second, 10*time.Millisecond)
}

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

require.Eventually(t, func() bool {
return len(watcher.Items) == 1
}, time.Second, 10*time.Millisecond)
}, 2*time.Second, 10*time.Millisecond)

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

require.Eventually(t, func() bool {
return len(watcher.Items) == 1
}, time.Second, 10*time.Millisecond)
}, 2*time.Second, 10*time.Millisecond)

require.Eventually(t, func() bool {
return counter.Load() == 2
}, time.Second, 10*time.Millisecond)
}, 2*time.Second, 10*time.Millisecond)
}

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

require.Eventually(t, func() bool {
return counter.Load() == 1
}, time.Second, 10*time.Millisecond)
}, 2*time.Second, 10*time.Millisecond)
}

func TestCRDSource_Watch(t *testing.T) {
Expand Down Expand Up @@ -733,7 +733,7 @@ func helperCreateWatcherWithInformer(t *testing.T) (*cachetesting.FakeController

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

cs := &crdSource{
informer: informer,
Expand Down
Loading