Skip to content

Commit

Permalink
one more
Browse files Browse the repository at this point in the history
Signed-off-by: zachaller <[email protected]>
  • Loading branch information
zachaller committed Jul 28, 2023
1 parent 55c08ab commit 07ebff2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions rollout/trafficrouting/nginx/nginx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -578,15 +578,13 @@ func TestReconciler_canaryIngress(t *testing.T) {
tests := generateMultiIngressTestData()
for _, test := range tests {
t.Run(test.name, func(t *testing.T) {
singleTest := test
// given
t.Parallel()
r := Reconciler{
cfg: ReconcilerConfig{
Rollout: fakeRollout(stableService, canaryService, singleTest.singleIngress, singleTest.multiIngress),
Rollout: fakeRollout(stableService, canaryService, test.singleIngress, test.multiIngress),
},
}
for _, ing := range singleTest.ingresses {
for _, ing := range test.ingresses {
stableIngress := networkingIngress(ing, 80, stableService)
stableIngress.Spec.IngressClassName = pointer.StringPtr("nginx-ext")
i := ingressutil.NewIngress(stableIngress)
Expand Down

0 comments on commit 07ebff2

Please sign in to comment.