Skip to content

Commit

Permalink
oasis-test-runner/txsource: increase number of validators
Browse files Browse the repository at this point in the history
Increase the number of validators used in txsource tests so that consensus can
keep making progress when one of the nodes is restarted.
  • Loading branch information
ptrus committed Apr 2, 2020
1 parent c64c6a6 commit b21ae67
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .changelog/2815.internal.2.md
Original file line number Diff line number Diff line change
@@ -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.
9 changes: 9 additions & 0 deletions go/oasis-test-runner/scenario/e2e/txsource.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b21ae67

Please sign in to comment.