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
ea79cfed
Commit
ea79cfed
authored
May 30, 2019
by
vipwzw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto ci
parent
7ae9e8e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
17 deletions
+13
-17
test-rpc.sh
plugin/dapp/guess/cmd/build/test-rpc.sh
+13
-17
No files found.
plugin/dapp/guess/cmd/build/test-rpc.sh
View file @
ea79cfed
...
...
@@ -140,7 +140,7 @@ queryBalance1() {
ok
=
$(
jq
'(.error|not) and (.result != "")'
<<<
"
$resp
"
)
[
"
$ok
"
==
true
]
echo_rst
"
$FUNCNAME
"
"
$?
"
echo
"
$resp
"
|
jq
-r
".result"
echo
"
$resp
"
|
jq
-r
".result"
}
sendTransaction2
()
{
...
...
@@ -216,7 +216,7 @@ queryBalance2() {
[
"
$ok
"
==
true
]
echo_rst
"
$FUNCNAME
"
"
$?
"
echo
"
$resp
"
|
jq
-r
".result"
echo
"
$resp
"
|
jq
-r
".result"
}
queryBalance3
()
{
...
...
@@ -228,7 +228,7 @@ queryBalance3() {
[
"
$ok
"
==
true
]
echo_rst
"
$FUNCNAME
"
"
$?
"
echo
"
$resp
"
|
jq
-r
".result"
echo
"
$resp
"
|
jq
-r
".result"
}
set
-x
...
...
@@ -587,10 +587,8 @@ function run_test() {
#等待2个区块
block_wait 2
#查询游戏状态
guess_QueryGameByID
"
$eventId
"
11
#查询游戏状态
guess_QueryGameByID
"
$eventId
"
11
#用户1下注
guess_game_bet1
...
...
@@ -598,9 +596,8 @@ function run_test() {
#等待1个区块
block_wait 2
#查询游戏状态
guess_QueryGameByID
"
$eventId
"
12
#查询游戏状态
guess_QueryGameByID
"
$eventId
"
12
#用户2下注
guess_game_bet2
...
...
@@ -608,17 +605,16 @@ function run_test() {
#等待2个区块
block_wait 2
#查询游戏状态
guess_QueryGameByID
"
$eventId
"
12
#查询游戏状态
guess_QueryGameByID
"
$eventId
"
12
#管理员发布结果
guess_game_abort
#等待1个区块
block_wait 2
#查询游戏状态
guess_QueryGameByID
"
$eventId
"
14
#等待1个区块
block_wait 2
#查询游戏状态
guess_QueryGameByID
"
$eventId
"
14
#start->bet->stop->abort
#管理员创建游戏
...
...
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