From b21ae674f5f989b6fe67295a592f3664d13766dc Mon Sep 17 00:00:00 2001 From: ptrus Date: Thu, 2 Apr 2020 13:14:25 +0200 Subject: [PATCH] oasis-test-runner/txsource: increase number of validators Increase the number of validators used in txsource tests so that consensus can keep making progress when one of the nodes is restarted. --- .changelog/2815.internal.2.md | 4 ++++ go/oasis-test-runner/scenario/e2e/txsource.go | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100644 .changelog/2815.internal.2.md diff --git a/.changelog/2815.internal.2.md b/.changelog/2815.internal.2.md new file mode 100644 index 00000000000..a2f18ace6b2 --- /dev/null +++ b/.changelog/2815.internal.2.md @@ -0,0 +1,4 @@ +oasis-test-runner/txsource: increase number of validators + +Increase the number of validators used in txsource tests so that consensus can +keep making progress when one of the nodes is restarted. diff --git a/go/oasis-test-runner/scenario/e2e/txsource.go b/go/oasis-test-runner/scenario/e2e/txsource.go index a4c7afb59d0..f92ed9ef603 100644 --- a/go/oasis-test-runner/scenario/e2e/txsource.go +++ b/go/oasis-test-runner/scenario/e2e/txsource.go @@ -96,6 +96,15 @@ func (sc *txSourceImpl) Fixture() (*oasis.NetworkFixture, error) { // Disable CheckTx on the client node so we can submit invalid transactions. f.Clients[0].ConsensusDisableCheckTx = true + // Use at least 4 validators so that consensus can keep making progress + // when a node is being killed and restarted. + f.Validators = []oasis.ValidatorFixture{ + oasis.ValidatorFixture{Entity: 1}, + oasis.ValidatorFixture{Entity: 1}, + oasis.ValidatorFixture{Entity: 1}, + oasis.ValidatorFixture{Entity: 1}, + } + // Update validators to require fee payments. for i := range f.Validators { f.Validators[i].MinGasPrice = txSourceGasPrice