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
6 changes: 6 additions & 0 deletions pkg/reconciler/route/route_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1389,6 +1389,12 @@ func TestUpdateDomainConfigMap(t *testing.T) {
t.Fatal("Failed to see route initial reconcile propagation:", err)
}

// Ensure we're operating on a copy, to make sure the update below
// generates an actual diff. Otherwise the value in the
// fake cache is going to be changed. Now, this update sometimes races with
// the CM update and since the update below is a noop (the same object
// is applied), noting happens and the test fails.
route = route.DeepCopy()
tc.apply(route, watcher)
fakerouteinformer.Get(ctx).Informer().GetIndexer().Add(route)
if _, err := routeClient.Update(route); err != nil {
Expand Down