Commit 075a66c1 authored by pengjun's avatar pengjun Committed by vipwzw

fix unit testcase

parent 2447cb40
...@@ -40,7 +40,7 @@ func TestJRPCChannel(t *testing.T) { ...@@ -40,7 +40,7 @@ func TestJRPCChannel(t *testing.T) {
{fn: testStartRawTxCmd}, {fn: testStartRawTxCmd},
{fn: testContinueRawTxCmd}, {fn: testContinueRawTxCmd},
{fn: testQuitRawTxCmd}, {fn: testQuitRawTxCmd},
{fn: testQueryGameById}, {fn: testQueryGameByID},
{fn: testQueryGameByAddr}, {fn: testQueryGameByAddr},
} }
for index, testCase := range testCases { for index, testCase := range testCases {
...@@ -73,12 +73,12 @@ func testQuitRawTxCmd(t *testing.T, jrpc *jsonclient.JSONClient) error { ...@@ -73,12 +73,12 @@ func testQuitRawTxCmd(t *testing.T, jrpc *jsonclient.JSONClient) error {
return jrpc.Call("pokerbull.PokerBullQuitTx", params, &res) return jrpc.Call("pokerbull.PokerBullQuitTx", params, &res)
} }
func testQueryGameById(t *testing.T, jrpc *jsonclient.JSONClient) error { func testQueryGameByID(t *testing.T, jrpc *jsonclient.JSONClient) error {
var rep interface{} var rep interface{}
var params types.Query4Cli var params types.Query4Cli
req := &pty.QueryPBGameInfo{} req := &pty.QueryPBGameInfo{}
params.Execer = "pokerbull" params.Execer = "pokerbull"
params.FuncName = "QueryGameById" params.FuncName = "QueryGameByID"
params.Payload = req params.Payload = req
rep = &pty.ReplyPBGame{} rep = &pty.ReplyPBGame{}
return jrpc.Call("Chain33.Query", params, rep) return jrpc.Call("Chain33.Query", params, rep)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment