Commit 9eb90e10 authored by mdj33's avatar mdj33 Committed by vipwzw

fix ut

parent a16842cb
...@@ -181,7 +181,7 @@ func voteTest(suite *NodeManageTestSuite, id string, join bool) { ...@@ -181,7 +181,7 @@ func voteTest(suite *NodeManageTestSuite, id string, join bool) {
Id: id, Id: id,
Value: pt.ParaNodeVoteYes, Value: pt.ParaNodeVoteYes,
} }
tx, err := pt.CreateRawNodeConfigTx(chain33TestCfg, config) tx, err := pt.CreateRawNodeConfigTx(config)
suite.Nil(err) suite.Nil(err)
count++ count++
...@@ -208,7 +208,7 @@ func (suite *NodeManageTestSuite) testNodeGroupConfigQuit() { ...@@ -208,7 +208,7 @@ func (suite *NodeManageTestSuite) testNodeGroupConfigQuit() {
Addrs: applyAddrs, Addrs: applyAddrs,
Op: pt.ParacrossNodeGroupApply, Op: pt.ParacrossNodeGroupApply,
} }
tx, err := pt.CreateRawNodeGroupApplyTx(chain33TestCfg, config) tx, err := pt.CreateRawNodeGroupApplyTx(config)
suite.Nil(err) suite.Nil(err)
receipt := nodeCommit(suite, PrivKeyB, tx) receipt := nodeCommit(suite, PrivKeyB, tx)
...@@ -223,7 +223,7 @@ func (suite *NodeManageTestSuite) testNodeGroupConfigQuit() { ...@@ -223,7 +223,7 @@ func (suite *NodeManageTestSuite) testNodeGroupConfigQuit() {
Id: g.Current.Id, Id: g.Current.Id,
Op: pt.ParacrossNodeGroupQuit, Op: pt.ParacrossNodeGroupQuit,
} }
tx, err = pt.CreateRawNodeGroupApplyTx(chain33TestCfg, config) tx, err = pt.CreateRawNodeGroupApplyTx(config)
suite.Nil(err) suite.Nil(err)
nodeCommit(suite, PrivKeyB, tx) nodeCommit(suite, PrivKeyB, tx)
...@@ -238,7 +238,7 @@ func (suite *NodeManageTestSuite) testNodeGroupConfig() { ...@@ -238,7 +238,7 @@ func (suite *NodeManageTestSuite) testNodeGroupConfig() {
Addrs: applyAddrs, Addrs: applyAddrs,
Op: pt.ParacrossNodeGroupApply, Op: pt.ParacrossNodeGroupApply,
} }
tx, err := pt.CreateRawNodeGroupApplyTx(chain33TestCfg, config) tx, err := pt.CreateRawNodeGroupApplyTx(config)
suite.Nil(err) suite.Nil(err)
receipt := nodeCommit(suite, PrivKeyB, tx) receipt := nodeCommit(suite, PrivKeyB, tx)
...@@ -253,7 +253,7 @@ func (suite *NodeManageTestSuite) testNodeGroupConfig() { ...@@ -253,7 +253,7 @@ func (suite *NodeManageTestSuite) testNodeGroupConfig() {
Id: g.Current.Id, Id: g.Current.Id,
Op: pt.ParacrossNodeGroupApprove, Op: pt.ParacrossNodeGroupApprove,
} }
tx, err = pt.CreateRawNodeGroupApplyTx(chain33TestCfg, config) tx, err = pt.CreateRawNodeGroupApplyTx(config)
suite.Nil(err) suite.Nil(err)
receipt = nodeCommit(suite, PrivKey12Q, tx) receipt = nodeCommit(suite, PrivKey12Q, tx)
...@@ -267,7 +267,7 @@ func (suite *NodeManageTestSuite) testNodeConfig() { ...@@ -267,7 +267,7 @@ func (suite *NodeManageTestSuite) testNodeConfig() {
Op: pt.ParaNodeJoin, Op: pt.ParaNodeJoin,
Addr: Account14K, Addr: Account14K,
} }
tx, err := pt.CreateRawNodeConfigTx(chain33TestCfg, config) tx, err := pt.CreateRawNodeConfigTx(config)
suite.Nil(err) suite.Nil(err)
receipt := nodeCommit(suite, PrivKey14K, tx) receipt := nodeCommit(suite, PrivKey14K, tx)
...@@ -286,7 +286,7 @@ func (suite *NodeManageTestSuite) testNodeConfig() { ...@@ -286,7 +286,7 @@ func (suite *NodeManageTestSuite) testNodeConfig() {
Op: pt.ParaNodeQuit, Op: pt.ParaNodeQuit,
Addr: Account14K, Addr: Account14K,
} }
tx, err = pt.CreateRawNodeConfigTx(chain33TestCfg, config) tx, err = pt.CreateRawNodeConfigTx(config)
suite.Nil(err) suite.Nil(err)
receipt = nodeCommit(suite, PrivKeyD, tx) receipt = nodeCommit(suite, PrivKeyD, tx)
checkQuitReceipt(suite, receipt) checkQuitReceipt(suite, receipt)
......
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