aboutsummaryrefslogtreecommitdiffstats
path: root/core/lattice_test.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-10-25 17:38:47 +0800
committerGitHub <noreply@github.com>2018-10-25 17:38:47 +0800
commit1e84ff2da76534b7b2412d2f4e862090dc31192c (patch)
tree02661cf8351be4944386352831ad4d8924ee9655 /core/lattice_test.go
parent04eeac10e6c690e62ae57ef0e2bdf4618b8782d1 (diff)
downloadtangerine-consensus-1e84ff2da76534b7b2412d2f4e862090dc31192c.tar
tangerine-consensus-1e84ff2da76534b7b2412d2f4e862090dc31192c.tar.gz
tangerine-consensus-1e84ff2da76534b7b2412d2f4e862090dc31192c.tar.bz2
tangerine-consensus-1e84ff2da76534b7b2412d2f4e862090dc31192c.tar.lz
tangerine-consensus-1e84ff2da76534b7b2412d2f4e862090dc31192c.tar.xz
tangerine-consensus-1e84ff2da76534b7b2412d2f4e862090dc31192c.tar.zst
tangerine-consensus-1e84ff2da76534b7b2412d2f4e862090dc31192c.zip
misc: Add longer timeout for test in master (#258)
Diffstat (limited to 'core/lattice_test.go')
-rw-r--r--core/lattice_test.go20
1 files changed, 13 insertions, 7 deletions
diff --git a/core/lattice_test.go b/core/lattice_test.go
index ff479bc..e14321d 100644
--- a/core/lattice_test.go
+++ b/core/lattice_test.go
@@ -216,18 +216,24 @@ func (s *LatticeTestSuite) TestSync() {
// and process it. Those generated blocks and kept into a buffer, and
// process by other Lattice instances with random order.
var (
+ chainNum = uint32(19)
+ otherLatticeNum = 50
+ )
+ if testing.Short() {
+ chainNum = 13
+ otherLatticeNum = 20
+ }
+ var (
blockNum = 500
// The first `desyncNum` blocks revealed are considered "desynced" and will
// not be delivered to lattice. After `syncNum` blocks have revealed, the
// system is considered "synced" and start feeding blocks that are desynced
// to processFinalizedBlock.
- desyncNum = 50
- syncNum = 150
- chainNum = uint32(19)
- otherLatticeNum = 50
- req = s.Require()
- err error
- cfg = types.Config{
+ desyncNum = 50
+ syncNum = 150
+ req = s.Require()
+ err error
+ cfg = types.Config{
NumChains: chainNum,
NotarySetSize: chainNum,
PhiRatio: float32(2) / float32(3),