Skip to content

Commit

Permalink
Fix unit test panic - add a pauseContext
Browse files Browse the repository at this point in the history
Signed-off-by: mitchell amihod <[email protected]>
  • Loading branch information
meeech committed Jun 2, 2023
1 parent 095690b commit 944b0e5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion rollout/canary_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1236,8 +1236,14 @@ func TestCanarySVCSelectors(t *testing.T) {
},
},
}

pc := pauseContext{
rollout: rollout,
}

rc := rolloutContext{
log: logutil.WithRollout(rollout),
log: logutil.WithRollout(rollout),
pauseContext: &pc,
reconcilerBase: reconcilerBase{
servicesLister: servicesLister,
kubeclientset: kubeclient,
Expand Down

0 comments on commit 944b0e5

Please sign in to comment.