aboutsummaryrefslogtreecommitdiffstats
path: root/core/configuration-chain_test.go
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2018-11-14 15:25:54 +0800
committerJimmy Hu <jimmy.hu@dexon.org>2018-11-14 15:25:54 +0800
commit3a04c0d3405960e3a6eabb6adc700fa2fd5aac21 (patch)
treee13d65047af0c5646867a7424683b96bfc2e843f /core/configuration-chain_test.go
parente33261e6008dfba5b3401d0adc22a7da8649c9dc (diff)
downloadtangerine-consensus-3a04c0d3405960e3a6eabb6adc700fa2fd5aac21.tar.gz
tangerine-consensus-3a04c0d3405960e3a6eabb6adc700fa2fd5aac21.tar.zst
tangerine-consensus-3a04c0d3405960e3a6eabb6adc700fa2fd5aac21.zip
utils: add utils package (#327)
Diffstat (limited to 'core/configuration-chain_test.go')
-rw-r--r--core/configuration-chain_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/configuration-chain_test.go b/core/configuration-chain_test.go
index b3d8ff4..129d07c 100644
--- a/core/configuration-chain_test.go
+++ b/core/configuration-chain_test.go
@@ -32,6 +32,7 @@ import (
"github.com/dexon-foundation/dexon-consensus/core/test"
"github.com/dexon-foundation/dexon-consensus/core/types"
typesDKG "github.com/dexon-foundation/dexon-consensus/core/types/dkg"
+ "github.com/dexon-foundation/dexon-consensus/core/utils"
)
type ConfigurationChainTestSuite struct {
@@ -174,7 +175,7 @@ func (s *ConfigurationChainTestSuite) runDKG(
for _, nID := range s.nIDs {
gov, err := test.NewGovernance(pks, 50*time.Millisecond, ConfigRoundShift)
s.Require().NoError(err)
- cache := NewNodeSetCache(gov)
+ cache := utils.NewNodeSetCache(gov)
cfgChains[nID] = newConfigurationChain(
nID, recv, gov, cache, &common.NullLogger{})
recv.nodes[nID] = cfgChains[nID]