From 5c5f29e5e4f8a525ca6cc9571d939be080fa4fef Mon Sep 17 00:00:00 2001 From: andronache Date: Fri, 9 Apr 2021 08:10:03 +0300 Subject: [PATCH] Removed panicky test --- dispatchers/replicator_it_test.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/dispatchers/replicator_it_test.go b/dispatchers/replicator_it_test.go index dbac43772..e693906bc 100644 --- a/dispatchers/replicator_it_test.go +++ b/dispatchers/replicator_it_test.go @@ -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) - } -}