mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-15 13:19:53 +05:00
Fix test
This commit is contained in:
committed by
Dan Christian Bogos
parent
e819f10c76
commit
564e2e1c0c
@@ -149,9 +149,7 @@ func (alS AttributeSCfg) Clone() (cln *AttributeSCfg) {
|
||||
Enabled: alS.Enabled,
|
||||
IndexedSelects: alS.IndexedSelects,
|
||||
NestedFields: alS.NestedFields,
|
||||
}
|
||||
if alS.Opts != nil {
|
||||
cln.Opts = alS.Opts.Clone()
|
||||
Opts: alS.Opts.Clone(),
|
||||
}
|
||||
if alS.ResourceSConns != nil {
|
||||
cln.ResourceSConns = utils.CloneStringSlice(alS.ResourceSConns)
|
||||
|
||||
@@ -167,6 +167,7 @@ func TestAttributeSCfgClone(t *testing.T) {
|
||||
PrefixIndexedFields: &[]string{"*req.index1", "*req.index2"},
|
||||
SuffixIndexedFields: &[]string{"*req.index1"},
|
||||
NestedFields: true,
|
||||
Opts: &AttributesOpts{},
|
||||
}
|
||||
rcv := ban.Clone()
|
||||
if !reflect.DeepEqual(ban, rcv) {
|
||||
|
||||
Reference in New Issue
Block a user