aboutsummaryrefslogtreecommitdiffstats
path: root/core/configuration-chain_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/configuration-chain_test.go
parentf90c15fcfa575e138355a449c49cd784ba54db17 (diff)
downloadtangerine-consensus-dbee0586b0a565ae9a31a3c2d967f5c2af76f60d.tar.gz
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/configuration-chain_test.go')
-rw-r--r--core/configuration-chain_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/configuration-chain_test.go b/core/configuration-chain_test.go
index 19d50a3..ec2d6f2 100644
--- a/core/configuration-chain_test.go
+++ b/core/configuration-chain_test.go
@@ -166,7 +166,7 @@ func (s *ConfigurationChainTestSuite) runDKG(
recv := newTestCCReceiver(s)
for _, nID := range s.nIDs {
- gov, err := test.NewGovernance(0, 50*time.Millisecond)
+ gov, err := test.NewGovernance(nil, 50*time.Millisecond)
s.Require().NoError(err)
cfgChains[nID] = newConfigurationChain(
nID, recv, gov, &common.NullLogger{})