mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
fixed display of help command for maxusage
This commit is contained in:
committed by
Dan Christian Bogos
parent
e859be8806
commit
40ff69ba40
@@ -53,14 +53,9 @@ func TestCmdMaxUsage(t *testing.T) {
|
||||
}
|
||||
// for coverage purpose
|
||||
formatedResult := command.GetFormatedResult(command.RpcResult())
|
||||
expected := GetFormatedResult(command.RpcResult(), utils.StringSet{
|
||||
utils.Usage: {},
|
||||
utils.GroupIntervalStart: {},
|
||||
utils.RateIncrement: {},
|
||||
utils.RateUnit: {},
|
||||
})
|
||||
if !reflect.DeepEqual(formatedResult, expected) {
|
||||
t.Errorf("Expected <%+v>, Received <%+v>", expected, formatedResult)
|
||||
|
||||
if formatedResult != `"0s"` {
|
||||
t.Errorf("Expected 0s, Received %s", formatedResult)
|
||||
}
|
||||
expected2 := []string{utils.ToR, utils.RequestType, utils.Tenant,
|
||||
utils.Category, utils.AccountField, utils.Subject, utils.Destination,
|
||||
|
||||
Reference in New Issue
Block a user