diff options
author | Mission Liao <mission.liao@dexon.org> | 2018-10-24 17:50:09 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-24 17:50:09 +0800 |
commit | dbee0586b0a565ae9a31a3c2d967f5c2af76f60d (patch) | |
tree | cdfaef7754aedfda8d02c7023364a645e391e59e /core/lattice_test.go | |
parent | f90c15fcfa575e138355a449c49cd784ba54db17 (diff) | |
download | dexon-consensus-dbee0586b0a565ae9a31a3c2d967f5c2af76f60d.tar dexon-consensus-dbee0586b0a565ae9a31a3c2d967f5c2af76f60d.tar.gz dexon-consensus-dbee0586b0a565ae9a31a3c2d967f5c2af76f60d.tar.bz2 dexon-consensus-dbee0586b0a565ae9a31a3c2d967f5c2af76f60d.tar.lz dexon-consensus-dbee0586b0a565ae9a31a3c2d967f5c2af76f60d.tar.xz dexon-consensus-dbee0586b0a565ae9a31a3c2d967f5c2af76f60d.tar.zst dexon-consensus-dbee0586b0a565ae9a31a3c2d967f5c2af76f60d.zip |
test: add test.State (#239)
* separate test utility and interface implementation
for test.Governance.
* add test.State.
* integrate test.State to test.Governance.
test.State is mainly used to emulate state propagation
on fullnode.
Diffstat (limited to 'core/lattice_test.go')
-rw-r--r-- | core/lattice_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/lattice_test.go b/core/lattice_test.go index 8fac592..bf4138a 100644 --- a/core/lattice_test.go +++ b/core/lattice_test.go @@ -105,7 +105,9 @@ func (s *LatticeTestSuite) newTestLatticeMgr( // Setup application. app := test.NewApp() // Setup governance. - gov, err := test.NewGovernance(int(cfg.NotarySetSize), cfg.LambdaBA) + _, pubKeys, err := test.NewKeys(int(cfg.NotarySetSize)) + req.NoError(err) + gov, err := test.NewGovernance(pubKeys, cfg.LambdaBA) req.NoError(err) // Setup compaction chain. cc := newCompactionChain(gov) |