mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-04 19:12:05 +00:00
Fix forgotten tests
This commit is contained in:
@@ -175,16 +175,19 @@ func TestFinalizeBlockValidators(t *testing.T) {
|
||||
|
||||
var (
|
||||
now = tmtime.Now()
|
||||
commitSig0 = types.NewCommitSigForBlock(
|
||||
[]byte("Signature1"),
|
||||
state.Validators.Validators[0].Address,
|
||||
now,
|
||||
)
|
||||
commitSig1 = types.NewCommitSigForBlock(
|
||||
[]byte("Signature2"),
|
||||
state.Validators.Validators[1].Address,
|
||||
now,
|
||||
)
|
||||
commitSig0 = types.CommitSig{
|
||||
BlockIDFlag: types.BlockIDFlagCommit,
|
||||
ValidatorAddress: state.Validators.Validators[0].Address,
|
||||
Timestamp: now,
|
||||
Signature: []byte("Signature1"),
|
||||
}
|
||||
|
||||
commitSig1 = types.CommitSig{
|
||||
BlockIDFlag: types.BlockIDFlagCommit,
|
||||
ValidatorAddress: state.Validators.Validators[1].Address,
|
||||
Timestamp: now,
|
||||
Signature: []byte("Signature2"),
|
||||
}
|
||||
absentSig = types.NewCommitSigAbsent()
|
||||
)
|
||||
|
||||
|
||||
@@ -377,8 +377,7 @@ func TestLoadBaseMeta(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestLoadBlockPart(t *testing.T) {
|
||||
cfg, err := config.ResetTestRoot(t.TempDir(), "blockchain_reactor_test")
|
||||
require.NoError(t, err)
|
||||
cfg := config.ResetTestRoot("blockchain_reactor_test")
|
||||
|
||||
bs, db := newInMemoryBlockStore()
|
||||
const height, index = 10, 1
|
||||
|
||||
Reference in New Issue
Block a user