aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-12-06 15:21:33 +0800
committerGitHub <noreply@github.com>2018-12-06 15:21:33 +0800
commit8fa4b9fd7220b9650047ce6575a51b2cab8aa617 (patch)
treebd92ec83f13aa1789e237a68ee63d1f05cbdf834
parent41753e517c68575589c485b3f9570db94e59bcd0 (diff)
downloadtangerine-consensus-8fa4b9fd7220b9650047ce6575a51b2cab8aa617.tar.gz
tangerine-consensus-8fa4b9fd7220b9650047ce6575a51b2cab8aa617.tar.zst
tangerine-consensus-8fa4b9fd7220b9650047ce6575a51b2cab8aa617.zip
ci: some change to circleci (#360)
* CircleCI: change to go1.11 * fix gofmt * Reduce test size
-rw-r--r--.circleci/config.yml2
-rw-r--r--core/lattice-data_test.go4
-rw-r--r--core/total-ordering_test.go2
3 files changed, 4 insertions, 4 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index dba5386..6ac301b 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -2,7 +2,7 @@ version: 2
jobs:
build:
docker:
- - image: circleci/golang:1.10
+ - image: circleci/golang:1.11
working_directory: /go/src/github.com/dexon-foundation/dexon-consensus
diff --git a/core/lattice-data_test.go b/core/lattice-data_test.go
index e939c81..8d37d21 100644
--- a/core/lattice-data_test.go
+++ b/core/lattice-data_test.go
@@ -345,8 +345,8 @@ func (s *LatticeDataTestSuite) TestSanityCheck() {
func (s *LatticeDataTestSuite) TestRandomlyGeneratedBlocks() {
var (
- chainNum uint32 = 19
- repeat = 20
+ chainNum uint32 = 16
+ repeat = 10
delivered []*types.Block
err error
req = s.Require()
diff --git a/core/total-ordering_test.go b/core/total-ordering_test.go
index 77bf21a..23da4e1 100644
--- a/core/total-ordering_test.go
+++ b/core/total-ordering_test.go
@@ -977,7 +977,7 @@ func (s *TotalOrderingTestSuite) TestRandomlyGeneratedBlocks() {
}
ackingCountGenerators := []func() int{
- nil, // Acking frequency with normal distribution.
+ nil, // Acking frequency with normal distribution.
test.MaxAckingCountGenerator(0), // Low acking frequency.
test.MaxAckingCountGenerator(numChains), // High acking frequency.
}