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
a2e5909e
Commit
a2e5909e
authored
Nov 13, 2019
by
mdj33
Committed by
vipwzw
Nov 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ut
parent
9eb90e10
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
9 deletions
+15
-9
testcase.sh
plugin/dapp/paracross/cmd/build/testcase.sh
+0
-1
superaccount_test.go
plugin/dapp/paracross/executor/superaccount_test.go
+15
-8
No files found.
plugin/dapp/paracross/cmd/build/testcase.sh
View file @
a2e5909e
...
...
@@ -9,7 +9,6 @@ MAIN_CLI="docker exec ${NODE3} /root/chain33-cli"
PARANAME
=
"para"
PARA_COIN_FROZEN
=
"5.0000"
MainLoopCheckForkHeight
=
"60"
TITLE
=
"user.p.para."
xsedfix
=
""
if
[
"
$(
uname
)
"
==
"Darwin"
]
;
then
...
...
plugin/dapp/paracross/executor/superaccount_test.go
View file @
a2e5909e
...
...
@@ -177,6 +177,7 @@ func checkVoteDoneReceipt(suite *NodeManageTestSuite, receipt *types.Receipt, co
func
voteTest
(
suite
*
NodeManageTestSuite
,
id
string
,
join
bool
)
{
var
count
int
config
:=
&
pt
.
ParaNodeAddrConfig
{
Title
:
chain33TestCfg
.
GetTitle
(),
Op
:
pt
.
ParaNodeVote
,
Id
:
id
,
Value
:
pt
.
ParaNodeVoteYes
,
...
...
@@ -205,6 +206,7 @@ func voteTest(suite *NodeManageTestSuite, id string, join bool) {
func
(
suite
*
NodeManageTestSuite
)
testNodeGroupConfigQuit
()
{
config
:=
&
pt
.
ParaNodeGroupConfig
{
Title
:
chain33TestCfg
.
GetTitle
(),
Addrs
:
applyAddrs
,
Op
:
pt
.
ParacrossNodeGroupApply
,
}
...
...
@@ -220,8 +222,9 @@ func (suite *NodeManageTestSuite) testNodeGroupConfigQuit() {
suite
.
Nil
(
err
)
config
=
&
pt
.
ParaNodeGroupConfig
{
Id
:
g
.
Current
.
Id
,
Op
:
pt
.
ParacrossNodeGroupQuit
,
Title
:
chain33TestCfg
.
GetTitle
(),
Id
:
g
.
Current
.
Id
,
Op
:
pt
.
ParacrossNodeGroupQuit
,
}
tx
,
err
=
pt
.
CreateRawNodeGroupApplyTx
(
config
)
suite
.
Nil
(
err
)
...
...
@@ -235,6 +238,7 @@ func (suite *NodeManageTestSuite) testNodeGroupConfig() {
suite
.
testNodeGroupConfigQuit
()
config
:=
&
pt
.
ParaNodeGroupConfig
{
Title
:
chain33TestCfg
.
GetTitle
(),
Addrs
:
applyAddrs
,
Op
:
pt
.
ParacrossNodeGroupApply
,
}
...
...
@@ -250,8 +254,9 @@ func (suite *NodeManageTestSuite) testNodeGroupConfig() {
suite
.
Nil
(
err
)
config
=
&
pt
.
ParaNodeGroupConfig
{
Id
:
g
.
Current
.
Id
,
Op
:
pt
.
ParacrossNodeGroupApprove
,
Title
:
chain33TestCfg
.
GetTitle
(),
Id
:
g
.
Current
.
Id
,
Op
:
pt
.
ParacrossNodeGroupApprove
,
}
tx
,
err
=
pt
.
CreateRawNodeGroupApplyTx
(
config
)
suite
.
Nil
(
err
)
...
...
@@ -264,8 +269,9 @@ func (suite *NodeManageTestSuite) testNodeGroupConfig() {
func
(
suite
*
NodeManageTestSuite
)
testNodeConfig
()
{
//Join test
config
:=
&
pt
.
ParaNodeAddrConfig
{
Op
:
pt
.
ParaNodeJoin
,
Addr
:
Account14K
,
Title
:
chain33TestCfg
.
GetTitle
(),
Op
:
pt
.
ParaNodeJoin
,
Addr
:
Account14K
,
}
tx
,
err
:=
pt
.
CreateRawNodeConfigTx
(
config
)
suite
.
Nil
(
err
)
...
...
@@ -283,8 +289,9 @@ func (suite *NodeManageTestSuite) testNodeConfig() {
//Quit test
config
=
&
pt
.
ParaNodeAddrConfig
{
Op
:
pt
.
ParaNodeQuit
,
Addr
:
Account14K
,
Title
:
chain33TestCfg
.
GetTitle
(),
Op
:
pt
.
ParaNodeQuit
,
Addr
:
Account14K
,
}
tx
,
err
=
pt
.
CreateRawNodeConfigTx
(
config
)
suite
.
Nil
(
err
)
...
...
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