Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
075a66c1
Commit
075a66c1
authored
Nov 21, 2018
by
pengjun
Committed by
vipwzw
Nov 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix unit testcase
parent
2447cb40
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
jrpc_channel_test.go
plugin/dapp/pokerbull/rpc/jrpc_channel_test.go
+3
-3
No files found.
plugin/dapp/pokerbull/rpc/jrpc_channel_test.go
View file @
075a66c1
...
...
@@ -40,7 +40,7 @@ func TestJRPCChannel(t *testing.T) {
{
fn
:
testStartRawTxCmd
},
{
fn
:
testContinueRawTxCmd
},
{
fn
:
testQuitRawTxCmd
},
{
fn
:
testQueryGameByI
d
},
{
fn
:
testQueryGameByI
D
},
{
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
testQueryGameByI
d
(
t
*
testing
.
T
,
jrpc
*
jsonclient
.
JSONClient
)
error
{
func
testQueryGameByI
D
(
t
*
testing
.
T
,
jrpc
*
jsonclient
.
JSONClient
)
error
{
var
rep
interface
{}
var
params
types
.
Query4Cli
req
:=
&
pty
.
QueryPBGameInfo
{}
params
.
Execer
=
"pokerbull"
params
.
FuncName
=
"QueryGameByI
d
"
params
.
FuncName
=
"QueryGameByI
D
"
params
.
Payload
=
req
rep
=
&
pty
.
ReplyPBGame
{}
return
jrpc
.
Call
(
"Chain33.Query"
,
params
,
rep
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment