More testcase fixes

This commit is contained in:
Christopher Goes 2018-09-07 00:47:37 +02:00
parent 06adc691d2
commit c667c5690a
2 changed files with 5 additions and 4 deletions

View File

@ -55,6 +55,7 @@ func ExamplePrintRegisteredTypes() {
//| PrivKeyLedgerSecp256k1 | tendermint/PrivKeyLedgerSecp256k1 | 0x10CAB393 | variable | |
//| PubKeyEd25519 | tendermint/PubKeyEd25519 | 0x1624DE64 | 0x20 | |
//| PubKeySecp256k1 | tendermint/PubKeySecp256k1 | 0xEB5AE987 | 0x21 | |
//| PubKeyMultisigThreshold | tendermint/PubKeyMultisigThreshold | 0x22C1F7E2 | variable | |
//| PrivKeyEd25519 | tendermint/PrivKeyEd25519 | 0xA3288910 | 0x40 | |
//| PrivKeySecp256k1 | tendermint/PrivKeySecp256k1 | 0xE1B0F79B | 0x20 | |
}

View File

@ -53,9 +53,9 @@ func TestInitGenesis(t *testing.T) {
require.Equal(t, sdk.Bonded, resVal.Status)
require.Equal(t, int16(1), resVal.BondIntraTxCounter)
abcivals := make([]abci.Validator, len(vals))
abcivals := make([]abci.ValidatorUpdate, len(vals))
for i, val := range validators {
abcivals[i] = sdk.ABCIValidator(val)
abcivals[i] = sdk.ABCIValidatorUpdate(val)
}
require.Equal(t, abcivals, vals)
@ -92,9 +92,9 @@ func TestInitGenesisLargeValidatorSet(t *testing.T) {
vals, err := InitGenesis(ctx, keeper, genesisState)
require.NoError(t, err)
abcivals := make([]abci.Validator, 100)
abcivals := make([]abci.ValidatorUpdate, 100)
for i, val := range validators[:100] {
abcivals[i] = sdk.ABCIValidator(val)
abcivals[i] = sdk.ABCIValidatorUpdate(val)
}
require.Equal(t, abcivals, vals)