mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Centralize test RPC client constructor
For now, done only for general_tests
This commit is contained in:
committed by
Dan Christian Bogos
parent
b7561497c7
commit
89dfc3e3d0
@@ -114,7 +114,7 @@ func testTutorialStartEngine(t *testing.T) {
|
||||
|
||||
func testTutorialRpcConn(t *testing.T) {
|
||||
var err error
|
||||
tutorialRpc, err = newRPCClient(tutorialCfg.ListenCfg()) // We connect over JSON so we can also troubleshoot if needed
|
||||
tutorialRpc, err = engine.NewRPCClient(tutorialCfg.ListenCfg()) // We connect over JSON so we can also troubleshoot if needed
|
||||
if err != nil {
|
||||
t.Fatal("Could not connect to rater: ", err.Error())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user