mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Removed panicky test
This commit is contained in:
committed by
Dan Christian Bogos
parent
88fe1db5aa
commit
5c5f29e5e4
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user