Remove test content made redundant by go version update

This commit is contained in:
ionutboangiu
2024-02-13 11:20:37 -05:00
committed by Dan Christian Bogos
parent d8ad760dbb
commit 8fe3a74998

View File

@@ -26,7 +26,6 @@ import (
"reflect"
"testing"
"github.com/cgrates/cgrates/agents"
"github.com/cgrates/cgrates/analyzers"
"github.com/cgrates/cgrates/config"
"github.com/cgrates/cgrates/engine"
@@ -88,9 +87,6 @@ func TestRegisterHttpFunc(t *testing.T) {
rcv.RpcRegisterName(utils.EmptyString, handler)
httpAgent := agents.NewHTTPAgent(nil, []string{}, nil, utils.EmptyString, utils.EmptyString, utils.EmptyString, nil)
rcv.RegisterHttpHandler("invalid_pattern", httpAgent)
if err := os.RemoveAll(cfgDflt.AnalyzerSCfg().DBPath); err != nil {
t.Fatal(err)
}
@@ -103,8 +99,6 @@ func TestRegisterProfiler(t *testing.T) {
caps := engine.NewCaps(0, utils.MetaBusy)
rcv := NewServer(caps)
registerProfiler("test_prefix", rcv.httpMux)
rcv.RegisterProfiler("/test_prefix")
rcv.StopBiRPC()