Commit 0d683940 authored by QM's avatar QM

fix autonomy unit test

parent f4e9e759
...@@ -597,7 +597,7 @@ func TestCheckChangeable(t *testing.T) { ...@@ -597,7 +597,7 @@ func TestCheckChangeable(t *testing.T) {
func TestReplaceBoard(t *testing.T) { func TestReplaceBoard(t *testing.T) {
at := newTestAutonomy() at := newTestAutonomy()
signer := util.HexToPrivkey(PrivKeyA) signer := util.HexToPrivkey(PrivKey17)
tx := &types.Transaction{} tx := &types.Transaction{}
tx.Sign(types.SECP256K1, signer) tx.Sign(types.SECP256K1, signer)
action := newAction(at, tx, 0) action := newAction(at, tx, 0)
...@@ -628,8 +628,8 @@ func TestReplaceBoard(t *testing.T) { ...@@ -628,8 +628,8 @@ func TestReplaceBoard(t *testing.T) {
changes = []*auty.Change{{Cancel: true, Addr: Addr18}} changes = []*auty.Change{{Cancel: true, Addr: Addr18}}
cur, err := action.replaceBoard(act, changes) cur, err := action.replaceBoard(act, changes)
assert.NoError(t, err) assert.NoError(t, err)
assert.Equal(t, cur.Boards[0], Addr18) assert.Equal(t, cur.Boards[20], Addr18)
assert.Equal(t, cur.Revboards[0], AddrA) assert.Equal(t, cur.Revboards[0], Addr17)
} }
func TestCopyAutonomyProposalChange(t *testing.T) { func TestCopyAutonomyProposalChange(t *testing.T) {
......
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