Commit d853474d authored by vipwzw's avatar vipwzw

auto ci

parent 2bea5d2e
...@@ -77,7 +77,7 @@ func TestJRPCChannel(t *testing.T) { ...@@ -77,7 +77,7 @@ func TestJRPCChannel(t *testing.T) {
} }
func testStartRawTxCmd(t *testing.T, jrpc *jsonclient.JSONClient) error { func testStartRawTxCmd(t *testing.T, jrpc *jsonclient.JSONClient) error {
payload := &pty.GuessGameStart{Topic: "WorldCup Final", Options: "A:France;B:Claodia", Category: "football", MaxBetsOneTime: 100e8, MaxBetsNumber:1000e8, DevFeeFactor: 5, DevFeeAddr: "1D6RFZNp2rh6QdbcZ1d7RWuBUz61We6SD7", PlatFeeFactor: 5, PlatFeeAddr: "1PHtChNt3UcfssR7v7trKSk3WJtAWjKjjX"} payload := &pty.GuessGameStart{Topic: "WorldCup Final", Options: "A:France;B:Claodia", Category: "football", MaxBetsOneTime: 100e8, MaxBetsNumber: 1000e8, DevFeeFactor: 5, DevFeeAddr: "1D6RFZNp2rh6QdbcZ1d7RWuBUz61We6SD7", PlatFeeFactor: 5, PlatFeeAddr: "1PHtChNt3UcfssR7v7trKSk3WJtAWjKjjX"}
params := &rpctypes.CreateTxIn{ params := &rpctypes.CreateTxIn{
Execer: types.ExecName(pty.GuessX), Execer: types.ExecName(pty.GuessX),
ActionName: pty.CreateStartTx, ActionName: pty.CreateStartTx,
...@@ -131,7 +131,6 @@ func testAbortRawTxCmd(t *testing.T, jrpc *jsonclient.JSONClient) error { ...@@ -131,7 +131,6 @@ func testAbortRawTxCmd(t *testing.T, jrpc *jsonclient.JSONClient) error {
return jrpc.Call("Chain33.CreateTransaction", params, &res) return jrpc.Call("Chain33.CreateTransaction", 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 rpctypes.Query4Jrpc var params rpctypes.Query4Jrpc
...@@ -187,7 +186,6 @@ func testQueryGamesByAdminAddr(t *testing.T, jrpc *jsonclient.JSONClient) error ...@@ -187,7 +186,6 @@ func testQueryGamesByAdminAddr(t *testing.T, jrpc *jsonclient.JSONClient) error
return jrpc.Call("Chain33.Query", params, rep) return jrpc.Call("Chain33.Query", params, rep)
} }
func testQueryGamesByAddrStatus(t *testing.T, jrpc *jsonclient.JSONClient) error { func testQueryGamesByAddrStatus(t *testing.T, jrpc *jsonclient.JSONClient) error {
var rep interface{} var rep interface{}
var params rpctypes.Query4Jrpc var params rpctypes.Query4Jrpc
...@@ -199,7 +197,6 @@ func testQueryGamesByAddrStatus(t *testing.T, jrpc *jsonclient.JSONClient) error ...@@ -199,7 +197,6 @@ func testQueryGamesByAddrStatus(t *testing.T, jrpc *jsonclient.JSONClient) error
return jrpc.Call("Chain33.Query", params, rep) return jrpc.Call("Chain33.Query", params, rep)
} }
func testQueryGamesByAdminStatus(t *testing.T, jrpc *jsonclient.JSONClient) error { func testQueryGamesByAdminStatus(t *testing.T, jrpc *jsonclient.JSONClient) error {
var rep interface{} var rep interface{}
var params rpctypes.Query4Jrpc var params rpctypes.Query4Jrpc
...@@ -220,4 +217,4 @@ func testQueryGamesByCategoryStatus(t *testing.T, jrpc *jsonclient.JSONClient) e ...@@ -220,4 +217,4 @@ func testQueryGamesByCategoryStatus(t *testing.T, jrpc *jsonclient.JSONClient) e
params.Payload = types.MustPBToJSON(req) params.Payload = types.MustPBToJSON(req)
rep = &pty.GuessGameRecords{} rep = &pty.GuessGameRecords{}
return jrpc.Call("Chain33.Query", params, rep) return jrpc.Call("Chain33.Query", params, rep)
} }
\ No newline at end of file
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