Revise NewRPCClient helper function

This commit is contained in:
ionutboangiu
2024-10-14 13:16:16 +03:00
committed by Dan Christian Bogos
parent 89dfc3e3d0
commit d4e4facc6b
56 changed files with 80 additions and 312 deletions

View File

@@ -113,11 +113,7 @@ func testTutorialStartEngine(t *testing.T) {
}
func testTutorialRpcConn(t *testing.T) {
var err error
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())
}
tutorialRpc = engine.NewRPCClient(t, tutorialCfg.ListenCfg())
}
func testTutorialFromFolder(t *testing.T) {