mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-23 16:18:44 +05:00
Make test client constructor error clearer
This commit is contained in:
committed by
Dan Christian Bogos
parent
4d9c0cb077
commit
70f230788b
@@ -329,7 +329,7 @@ func NewRPCClient(t testing.TB, cfg *config.ListenCfg, encoding string) *birpc.C
|
||||
case utils.MetaGOB:
|
||||
client, err = birpc.Dial(utils.TCP, cfg.RPCGOBListen)
|
||||
default:
|
||||
t.Fatalf("unsupported RPC encoding: %s", encoding)
|
||||
t.Fatalf("unsupported RPC encoding: %q", encoding)
|
||||
}
|
||||
if err != nil {
|
||||
t.Fatalf("unable to connect to cgr-engine: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user