Centralize test RPC client constructor

For now, done only for general_tests
This commit is contained in:
ionutboangiu
2024-10-14 12:20:07 +03:00
committed by Dan Christian Bogos
parent b7561497c7
commit 89dfc3e3d0
68 changed files with 82 additions and 122 deletions

View File

@@ -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())
}