Commit a2e5909e authored by mdj33's avatar mdj33 Committed by vipwzw

fix ut

parent 9eb90e10
...@@ -9,7 +9,6 @@ MAIN_CLI="docker exec ${NODE3} /root/chain33-cli" ...@@ -9,7 +9,6 @@ MAIN_CLI="docker exec ${NODE3} /root/chain33-cli"
PARANAME="para" PARANAME="para"
PARA_COIN_FROZEN="5.0000" PARA_COIN_FROZEN="5.0000"
MainLoopCheckForkHeight="60" MainLoopCheckForkHeight="60"
TITLE="user.p.para."
xsedfix="" xsedfix=""
if [ "$(uname)" == "Darwin" ]; then if [ "$(uname)" == "Darwin" ]; then
......
...@@ -177,6 +177,7 @@ func checkVoteDoneReceipt(suite *NodeManageTestSuite, receipt *types.Receipt, co ...@@ -177,6 +177,7 @@ func checkVoteDoneReceipt(suite *NodeManageTestSuite, receipt *types.Receipt, co
func voteTest(suite *NodeManageTestSuite, id string, join bool) { func voteTest(suite *NodeManageTestSuite, id string, join bool) {
var count int var count int
config := &pt.ParaNodeAddrConfig{ config := &pt.ParaNodeAddrConfig{
Title: chain33TestCfg.GetTitle(),
Op: pt.ParaNodeVote, Op: pt.ParaNodeVote,
Id: id, Id: id,
Value: pt.ParaNodeVoteYes, Value: pt.ParaNodeVoteYes,
...@@ -205,6 +206,7 @@ func voteTest(suite *NodeManageTestSuite, id string, join bool) { ...@@ -205,6 +206,7 @@ func voteTest(suite *NodeManageTestSuite, id string, join bool) {
func (suite *NodeManageTestSuite) testNodeGroupConfigQuit() { func (suite *NodeManageTestSuite) testNodeGroupConfigQuit() {
config := &pt.ParaNodeGroupConfig{ config := &pt.ParaNodeGroupConfig{
Title: chain33TestCfg.GetTitle(),
Addrs: applyAddrs, Addrs: applyAddrs,
Op: pt.ParacrossNodeGroupApply, Op: pt.ParacrossNodeGroupApply,
} }
...@@ -220,6 +222,7 @@ func (suite *NodeManageTestSuite) testNodeGroupConfigQuit() { ...@@ -220,6 +222,7 @@ func (suite *NodeManageTestSuite) testNodeGroupConfigQuit() {
suite.Nil(err) suite.Nil(err)
config = &pt.ParaNodeGroupConfig{ config = &pt.ParaNodeGroupConfig{
Title: chain33TestCfg.GetTitle(),
Id: g.Current.Id, Id: g.Current.Id,
Op: pt.ParacrossNodeGroupQuit, Op: pt.ParacrossNodeGroupQuit,
} }
...@@ -235,6 +238,7 @@ func (suite *NodeManageTestSuite) testNodeGroupConfig() { ...@@ -235,6 +238,7 @@ func (suite *NodeManageTestSuite) testNodeGroupConfig() {
suite.testNodeGroupConfigQuit() suite.testNodeGroupConfigQuit()
config := &pt.ParaNodeGroupConfig{ config := &pt.ParaNodeGroupConfig{
Title: chain33TestCfg.GetTitle(),
Addrs: applyAddrs, Addrs: applyAddrs,
Op: pt.ParacrossNodeGroupApply, Op: pt.ParacrossNodeGroupApply,
} }
...@@ -250,6 +254,7 @@ func (suite *NodeManageTestSuite) testNodeGroupConfig() { ...@@ -250,6 +254,7 @@ func (suite *NodeManageTestSuite) testNodeGroupConfig() {
suite.Nil(err) suite.Nil(err)
config = &pt.ParaNodeGroupConfig{ config = &pt.ParaNodeGroupConfig{
Title: chain33TestCfg.GetTitle(),
Id: g.Current.Id, Id: g.Current.Id,
Op: pt.ParacrossNodeGroupApprove, Op: pt.ParacrossNodeGroupApprove,
} }
...@@ -264,6 +269,7 @@ func (suite *NodeManageTestSuite) testNodeGroupConfig() { ...@@ -264,6 +269,7 @@ func (suite *NodeManageTestSuite) testNodeGroupConfig() {
func (suite *NodeManageTestSuite) testNodeConfig() { func (suite *NodeManageTestSuite) testNodeConfig() {
//Join test //Join test
config := &pt.ParaNodeAddrConfig{ config := &pt.ParaNodeAddrConfig{
Title: chain33TestCfg.GetTitle(),
Op: pt.ParaNodeJoin, Op: pt.ParaNodeJoin,
Addr: Account14K, Addr: Account14K,
} }
...@@ -283,6 +289,7 @@ func (suite *NodeManageTestSuite) testNodeConfig() { ...@@ -283,6 +289,7 @@ func (suite *NodeManageTestSuite) testNodeConfig() {
//Quit test //Quit test
config = &pt.ParaNodeAddrConfig{ config = &pt.ParaNodeAddrConfig{
Title: chain33TestCfg.GetTitle(),
Op: pt.ParaNodeQuit, Op: pt.ParaNodeQuit,
Addr: Account14K, Addr: Account14K,
} }
......
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