Skip to content

Commit

Permalink
Concurrency safety for testutil
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Olshevski committed Dec 13, 2023
1 parent bf62faa commit b8d71a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/testutil/testutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ func NewPodController(t testing.TB, mgr ctrl.Manager, fn func(*apiv1.Composition
comp.Status.CurrentState.ResourceSlices = sliceRefs
comp.Status.CurrentState.Synthesized = true
if synGen < syn.Generation || compGen < comp.Generation {
t.Logf("skipping update for pod %s because it's out of date (%d < %d || %d < %d)", pod.Name, synGen, syn.Generation, compGen, comp.Generation)
t.Logf("skipping update For pod %s because it's out of date (%d < %d || %d < %d)", pod.Name, synGen, syn.Generation, compGen, comp.Generation)
return nil
}
err = cli.Status().Update(ctx, comp)
Expand Down

0 comments on commit b8d71a3

Please sign in to comment.