mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-14 20:59:53 +05:00
Rename a test variable
This commit is contained in:
committed by
Dan Christian Bogos
parent
141d293217
commit
ab5c0a7b8e
@@ -2082,7 +2082,7 @@ func TestRoutesSortedForEventWithLimitAndOffset2(t *testing.T) {
|
||||
Weights: utils.DynamicWeights{{}},
|
||||
},
|
||||
}
|
||||
argsGetRoutes := &utils.CGREvent{
|
||||
args := &utils.CGREvent{
|
||||
Tenant: "cgrates.org",
|
||||
ID: "utils.CGREvent1",
|
||||
Event: map[string]interface{}{},
|
||||
@@ -2143,9 +2143,9 @@ func TestRoutesSortedForEventWithLimitAndOffset2(t *testing.T) {
|
||||
},
|
||||
},
|
||||
}
|
||||
argsGetRoutes.APIOpts[utils.OptsRoutesLimit] = 2
|
||||
argsGetRoutes.APIOpts[utils.OptsRoutesOffset] = 1
|
||||
sprf, err := routeService.sortedRoutesForEvent(context.Background(), argsGetRoutes.Tenant, argsGetRoutes)
|
||||
args.APIOpts[utils.OptsRoutesLimit] = 2
|
||||
args.APIOpts[utils.OptsRoutesOffset] = 1
|
||||
sprf, err := routeService.sortedRoutesForEvent(context.Background(), args.Tenant, args)
|
||||
if err != nil {
|
||||
t.Errorf("Error: %+v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user