Skip to content

Commit

Permalink
Fix unit test due to drop of sorting in ingress rules
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Jun 15, 2024
1 parent 6b8f718 commit e986b11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func Test_RedirectRules(t *testing.T) {
ingressRules = append(ingressRules, Ingress{Path: "/path/"})
ingressRules = append(ingressRules, Ingress{Path: "/path/rse"})
rmap, rules := RedirectRules(ingressRules)
expect := []string{"/path/rse", "/path/aaa", "/path/"}
expect := []string{"/path/aaa", "/path/", "/path/rse"}
assert.Equal(t, rules, expect)
assert.Equal(t, len(rmap), len(rules))
}

0 comments on commit e986b11

Please sign in to comment.