aboutsummaryrefslogtreecommitdiffstats
path: root/core/consensus_test.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-12-10 10:58:16 +0800
committerGitHub <noreply@github.com>2018-12-10 10:58:16 +0800
commit94b24517ce7d1ab120bde7036551448fc0b27220 (patch)
tree4b628c4f2ad8ea0a155e7026365a5a626b6cd445 /core/consensus_test.go
parent7654e95f94f4902eb624bcdae1e6c8ebbf38e289 (diff)
downloaddexon-consensus-94b24517ce7d1ab120bde7036551448fc0b27220.tar
dexon-consensus-94b24517ce7d1ab120bde7036551448fc0b27220.tar.gz
dexon-consensus-94b24517ce7d1ab120bde7036551448fc0b27220.tar.bz2
dexon-consensus-94b24517ce7d1ab120bde7036551448fc0b27220.tar.lz
dexon-consensus-94b24517ce7d1ab120bde7036551448fc0b27220.tar.xz
dexon-consensus-94b24517ce7d1ab120bde7036551448fc0b27220.tar.zst
dexon-consensus-94b24517ce7d1ab120bde7036551448fc0b27220.zip
core: Longer lambda for TravisCI (#365)
* Longer time for TravisCI. * Update CI setting for PR
Diffstat (limited to 'core/consensus_test.go')
-rw-r--r--core/consensus_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/consensus_test.go b/core/consensus_test.go
index 65f4e36..5fb804b 100644
--- a/core/consensus_test.go
+++ b/core/consensus_test.go
@@ -533,6 +533,9 @@ func (s *ConsensusTestSuite) TestDKGCRS() {
n = 7
lambda = 100 * time.Millisecond
}
+ if isTravisCI() {
+ lambda *= 5
+ }
conn := s.newNetworkConnection()
prvKeys, pubKeys, err := test.NewKeys(n)
s.Require().NoError(err)
@@ -549,7 +552,7 @@ func (s *ConsensusTestSuite) TestDKGCRS() {
con.cfgModule.registerDKG(uint64(0), n/3+1)
}
for _, con := range cons {
- con.runDKG(0, gov.Configuration(0))
+ go con.runDKG(0, gov.Configuration(0))
}
for _, con := range cons {
func() {