aboutsummaryrefslogtreecommitdiffstats
path: root/core/lattice_test.go
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2018-10-24 17:50:09 +0800
committerGitHub <noreply@github.com>2018-10-24 17:50:09 +0800
commitdbee0586b0a565ae9a31a3c2d967f5c2af76f60d (patch)
treecdfaef7754aedfda8d02c7023364a645e391e59e /core/lattice_test.go
parentf90c15fcfa575e138355a449c49cd784ba54db17 (diff)
downloadtangerine-consensus-dbee0586b0a565ae9a31a3c2d967f5c2af76f60d.tar
tangerine-consensus-dbee0586b0a565ae9a31a3c2d967f5c2af76f60d.tar.gz
tangerine-consensus-dbee0586b0a565ae9a31a3c2d967f5c2af76f60d.tar.bz2
tangerine-consensus-dbee0586b0a565ae9a31a3c2d967f5c2af76f60d.tar.lz
tangerine-consensus-dbee0586b0a565ae9a31a3c2d967f5c2af76f60d.tar.xz
tangerine-consensus-dbee0586b0a565ae9a31a3c2d967f5c2af76f60d.tar.zst
tangerine-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.go4
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)