diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-10-04 10:10:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-04 10:10:15 +0800 |
commit | 9132f28a52b372efe0b13678db41d125ee37c358 (patch) | |
tree | f5401256e69114848c877cc700176072d3337868 /integration_test | |
parent | 64efb7a31383c912b3980b02c7e6dea34247aaf7 (diff) | |
download | tangerine-consensus-9132f28a52b372efe0b13678db41d125ee37c358.tar tangerine-consensus-9132f28a52b372efe0b13678db41d125ee37c358.tar.gz tangerine-consensus-9132f28a52b372efe0b13678db41d125ee37c358.tar.bz2 tangerine-consensus-9132f28a52b372efe0b13678db41d125ee37c358.tar.lz tangerine-consensus-9132f28a52b372efe0b13678db41d125ee37c358.tar.xz tangerine-consensus-9132f28a52b372efe0b13678db41d125ee37c358.tar.zst tangerine-consensus-9132f28a52b372efe0b13678db41d125ee37c358.zip |
test: Short test applied to some long running tests (#168)
Diffstat (limited to 'integration_test')
-rw-r--r-- | integration_test/non-byzantine_test.go | 6 |
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)) |