aboutsummaryrefslogtreecommitdiffstats
path: root/integration_test
diff options
context:
space:
mode:
Diffstat (limited to 'integration_test')
-rw-r--r--integration_test/utils.go4
-rw-r--r--integration_test/validator.go3
2 files changed, 4 insertions, 3 deletions
diff --git a/integration_test/utils.go b/integration_test/utils.go
index de7e6ab..57bb2bc 100644
--- a/integration_test/utils.go
+++ b/integration_test/utils.go
@@ -1,6 +1,8 @@
package integration
import (
+ "time"
+
"github.com/dexon-foundation/dexon-consensus-core/core/blockdb"
"github.com/dexon-foundation/dexon-consensus-core/core/test"
"github.com/dexon-foundation/dexon-consensus-core/core/types"
@@ -25,7 +27,7 @@ func PrepareValidators(
dbs = make(map[types.ValidatorID]blockdb.BlockDatabase)
validators = make(map[types.ValidatorID]*Validator)
- gov, err := test.NewGovernance(validatorCount, 700)
+ gov, err := test.NewGovernance(validatorCount, 700*time.Millisecond)
if err != nil {
return
}
diff --git a/integration_test/validator.go b/integration_test/validator.go
index a110ab0..18e5c00 100644
--- a/integration_test/validator.go
+++ b/integration_test/validator.go
@@ -102,8 +102,7 @@ func NewValidator(
networkLatency: networkLatency,
proposingLatency: proposingLatency,
cons: core.NewConsensus(
- app, gov,
- db, &Network{}, time.NewTicker(1), privateKey, eth.SigToPub),
+ app, gov, db, &Network{}, privateKey, eth.SigToPub),
}
}