Removed panicky test

This commit is contained in:
andronache
2021-04-09 08:10:03 +03:00
committed by Dan Christian Bogos
parent 88fe1db5aa
commit 5c5f29e5e4

View File

@@ -2481,16 +2481,3 @@ func TestDspReplicatorSv1SetThresholdProfileErrorNil(t *testing.T) {
t.Errorf("\nExpected <%+v>, \nReceived <%+v>", expected, result)
}
}
func TestDspReplicatorSv1SetThresholdProfileNilEvent(t *testing.T) {
cgrCfg := config.NewDefaultCGRConfig()
dspSrv := NewDispatcherService(nil, cgrCfg, nil, nil)
cgrCfg.DispatcherSCfg().AttributeSConns = []string{"test"}
var CGREvent *engine.ThresholdProfileWithAPIOpts
var reply *string
result := dspSrv.ReplicatorSv1SetThresholdProfile(CGREvent, reply)
expected := "MANDATORY_IE_MISSING: [ApiKey]"
if result == nil || result.Error() != expected {
t.Errorf("\nExpected <%+v>, \nReceived <%+v>", expected, result)
}
}