Commit 0f0b02ce authored by vipwzw's avatar vipwzw

auto ci

parent e7a77cac
...@@ -453,8 +453,6 @@ func (a *action) checkConfig(title string) error { ...@@ -453,8 +453,6 @@ func (a *action) checkConfig(title string) error {
return nil return nil
} }
func getAddrGroup(addr string) []string { func getAddrGroup(addr string) []string {
if strings.Contains(addr, ",") { if strings.Contains(addr, ",") {
repeats := make(map[string]bool) repeats := make(map[string]bool)
......
...@@ -29,7 +29,6 @@ var ( ...@@ -29,7 +29,6 @@ var (
PrivKey12Q = "4257D8692EF7FE13C68B65D6A52F03933DB2FA5CE8FAF210B5B8B80C721CED01" PrivKey12Q = "4257D8692EF7FE13C68B65D6A52F03933DB2FA5CE8FAF210B5B8B80C721CED01"
) )
type NodeManageTestSuite struct { type NodeManageTestSuite struct {
suite.Suite suite.Suite
stateDB dbm.KV stateDB dbm.KV
...@@ -63,7 +62,7 @@ func (suite *NodeManageTestSuite) SetupSuite() { ...@@ -63,7 +62,7 @@ func (suite *NodeManageTestSuite) SetupSuite() {
//} //}
types.S("config.consensus.sub.para.MainForkParacrossCommitTx", int64(1)) types.S("config.consensus.sub.para.MainForkParacrossCommitTx", int64(1))
types.S("config.exec.sub.manage.superManager",[]interface{}{Account12Q}) types.S("config.exec.sub.manage.superManager", []interface{}{Account12Q})
// TODO, more fields // TODO, more fields
// setup block // setup block
...@@ -72,7 +71,6 @@ func (suite *NodeManageTestSuite) SetupSuite() { ...@@ -72,7 +71,6 @@ func (suite *NodeManageTestSuite) SetupSuite() {
} }
MainBlockHash10 = blockDetail.Block.Hash() MainBlockHash10 = blockDetail.Block.Hash()
} }
func (suite *NodeManageTestSuite) TestSetup() { func (suite *NodeManageTestSuite) TestSetup() {
...@@ -131,7 +129,6 @@ func checkGroupApproveReceipt(suite *NodeManageTestSuite, receipt *types.Receipt ...@@ -131,7 +129,6 @@ func checkGroupApproveReceipt(suite *NodeManageTestSuite, receipt *types.Receipt
} }
func checkJoinReceipt(suite *NodeManageTestSuite, receipt *types.Receipt) { func checkJoinReceipt(suite *NodeManageTestSuite, receipt *types.Receipt) {
assert.Equal(suite.T(), receipt.Ty, int32(types.ExecOk)) assert.Equal(suite.T(), receipt.Ty, int32(types.ExecOk))
assert.Len(suite.T(), receipt.KV, 1) assert.Len(suite.T(), receipt.KV, 1)
...@@ -221,7 +218,7 @@ func voteTest(suite *NodeManageTestSuite, addr string, join bool) { ...@@ -221,7 +218,7 @@ func voteTest(suite *NodeManageTestSuite, addr string, join bool) {
func (suite *NodeManageTestSuite) testNodeGroupConfig() { func (suite *NodeManageTestSuite) testNodeGroupConfig() {
//title := types.GetTitle() //title := types.GetTitle()
config := &pt.ParaNodeGroupApply{ config := &pt.ParaNodeGroupApply{
Addrs:applyAddrs, Addrs: applyAddrs,
Op: pt.ParacrossNodeGroupApply, Op: pt.ParacrossNodeGroupApply,
} }
tx, err := pt.CreateRawNodeGroupApplyTx(config) tx, err := pt.CreateRawNodeGroupApplyTx(config)
...@@ -231,7 +228,7 @@ func (suite *NodeManageTestSuite) testNodeGroupConfig() { ...@@ -231,7 +228,7 @@ func (suite *NodeManageTestSuite) testNodeGroupConfig() {
checkGroupApplyReceipt(suite, receipt) checkGroupApplyReceipt(suite, receipt)
config = &pt.ParaNodeGroupApply{ config = &pt.ParaNodeGroupApply{
Addrs:applyAddrs, Addrs: applyAddrs,
Op: pt.ParacrossNodeGroupApprove, Op: pt.ParacrossNodeGroupApprove,
} }
tx, err = pt.CreateRawNodeGroupApplyTx(config) tx, err = pt.CreateRawNodeGroupApplyTx(config)
......
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