separate mock evidence from real evidence (#2571)

Closes #2525
This commit is contained in:
Anton Kaliaev
2018-10-09 14:10:05 +02:00
committed by Alexander Simmerl
parent 989a2f32b1
commit 724e264ff5
7 changed files with 33 additions and 10 deletions
+8
View File
@@ -1,6 +1,7 @@
package evidence
import (
"os"
"sync"
"testing"
@@ -14,6 +15,13 @@ import (
var mockState = sm.State{}
func TestMain(m *testing.M) {
types.RegisterMockEvidences(cdc)
code := m.Run()
os.Exit(code)
}
func initializeValidatorState(valAddr []byte, height int64) dbm.DB {
stateDB := dbm.NewMemDB()
+2 -4
View File
@@ -6,14 +6,12 @@ import (
"testing"
"time"
"github.com/go-kit/kit/log/term"
"github.com/stretchr/testify/assert"
"github.com/go-kit/kit/log/term"
cfg "github.com/tendermint/tendermint/config"
dbm "github.com/tendermint/tendermint/libs/db"
"github.com/tendermint/tendermint/libs/log"
cfg "github.com/tendermint/tendermint/config"
"github.com/tendermint/tendermint/p2p"
"github.com/tendermint/tendermint/types"
)