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) {
{fn: testStartRawTxCmd},
{fn: testContinueRawTxCmd},
{fn: testQuitRawTxCmd},
{fn: testQueryGameById},
{fn: testQueryGameByID},
{fn: testQueryGameByAddr},
}
for index, testCase := range testCases {
......@@ -73,12 +73,12 @@ func testQuitRawTxCmd(t *testing.T, jrpc *jsonclient.JSONClient) error {
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 params types.Query4Cli
req := &pty.QueryPBGameInfo{}
params.Execer = "pokerbull"
params.FuncName = "QueryGameById"
params.FuncName = "QueryGameByID"
params.Payload = req
rep = &pty.ReplyPBGame{}
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