Clean up DispatcherS

This commit is contained in:
armirveliaj
2025-01-17 06:02:29 -05:00
committed by Dan Christian Bogos
parent e23759b4a8
commit 7db65ca62c
280 changed files with 1086 additions and 36509 deletions

View File

@@ -245,10 +245,6 @@ func TestFlagsWithParamsClone(t *testing.T) {
if !reflect.DeepEqual(cln, fWp) {
t.Errorf("Expecting: %+v, received: %+v", ToJSON(fWp), ToJSON(cln))
}
cln[MetaDispatchers] = FlagParams{}
if _, has := fWp[MetaDispatchers]; has {
t.Errorf("Expected clone to not modify the cloned")
}
cln[MetaThresholds][MetaIDs][0] = ""
if fWp[MetaThresholds][MetaIDs][0] != "ID1" {
t.Errorf("Expected clone to not modify the cloned")