Skip to content

Commit

Permalink
syntax fixes
Browse files Browse the repository at this point in the history
Signed-off-by: heartwilltell <[email protected]>
  • Loading branch information
heartwilltell committed Jan 16, 2025
1 parent 655e2b8 commit 909b63b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli/test_routing.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,12 @@ func (c *routingShow) routingTestAction(ctx context.Context, _ *kingpin.ParseCon

for expectedReceiver, expectedGroups := range c.receiversGrouping {
baseReceiver := strings.Split(expectedReceiver, "_")[0]

if baseReceiver == receiver && expectedGroups != nil {
if stringSlicesEqual(expectedGroups, actualGroups) {
matchedReceivers[expectedReceiver] = true
matched = true

break
}
}
Expand Down Expand Up @@ -249,6 +251,7 @@ func (c *routingShow) routingTestAction(ctx context.Context, _ *kingpin.ParseCon
for _, route := range finalRoutes {
if len(route.RouteOpts.GroupBy) > 0 {
groupBySlice := make([]string, 0, len(route.RouteOpts.GroupBy))

for k := range route.RouteOpts.GroupBy {
groupBySlice = append(groupBySlice, string(k))
}
Expand Down

0 comments on commit 909b63b

Please sign in to comment.