aboutsummaryrefslogtreecommitdiffstats
path: root/integration_test/non-byzantine_test.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-10-04 10:10:15 +0800
committerGitHub <noreply@github.com>2018-10-04 10:10:15 +0800
commit9132f28a52b372efe0b13678db41d125ee37c358 (patch)
treef5401256e69114848c877cc700176072d3337868 /integration_test/non-byzantine_test.go
parent64efb7a31383c912b3980b02c7e6dea34247aaf7 (diff)
downloaddexon-consensus-9132f28a52b372efe0b13678db41d125ee37c358.tar
dexon-consensus-9132f28a52b372efe0b13678db41d125ee37c358.tar.gz
dexon-consensus-9132f28a52b372efe0b13678db41d125ee37c358.tar.bz2
dexon-consensus-9132f28a52b372efe0b13678db41d125ee37c358.tar.lz
dexon-consensus-9132f28a52b372efe0b13678db41d125ee37c358.tar.xz
dexon-consensus-9132f28a52b372efe0b13678db41d125ee37c358.tar.zst
dexon-consensus-9132f28a52b372efe0b13678db41d125ee37c358.zip
test: Short test applied to some long running tests (#168)
Diffstat (limited to 'integration_test/non-byzantine_test.go')
-rw-r--r--integration_test/non-byzantine_test.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/integration_test/non-byzantine_test.go b/integration_test/non-byzantine_test.go
index 34c6be1..df08b97 100644
--- a/integration_test/non-byzantine_test.go
+++ b/integration_test/non-byzantine_test.go
@@ -32,6 +32,10 @@ type NonByzantineTestSuite struct {
}
func (s *NonByzantineTestSuite) TestNonByzantine() {
+ numNodes := 25
+ if testing.Short() {
+ numNodes = 7
+ }
var (
networkLatency = &test.NormalLatencyModel{
Sigma: 20,
@@ -47,7 +51,7 @@ func (s *NonByzantineTestSuite) TestNonByzantine() {
)
apps, dbs, nodes, err := PrepareNodes(
- 25, networkLatency, proposingLatency)
+ numNodes, networkLatency, proposingLatency)
req.Nil(err)
now := time.Now().UTC()
sch := test.NewScheduler(test.NewStopByConfirmedBlocks(50, apps, dbs))