Skip to content

Commit

Permalink
oasis-test-runner/txsource: disable LogAssertNoTimeouts if restarts
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrus committed Apr 3, 2020
1 parent ce667e7 commit 50953bf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions go/oasis-test-runner/scenario/e2e/txsource.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"github.com/oasislabs/oasis-core/go/oasis-node/cmd/debug/txsource"
"github.com/oasislabs/oasis-core/go/oasis-node/cmd/debug/txsource/workload"
"github.com/oasislabs/oasis-core/go/oasis-test-runner/env"
"github.com/oasislabs/oasis-core/go/oasis-test-runner/log"
"github.com/oasislabs/oasis-core/go/oasis-test-runner/oasis"
"github.com/oasislabs/oasis-core/go/oasis-test-runner/scenario"
)
Expand Down Expand Up @@ -93,6 +94,15 @@ func (sc *txSourceImpl) Fixture() (*oasis.NetworkFixture, error) {
f.Network.DeterministicIdentities = true
f.Network.StakingGenesis = "tests/fixture-data/txsource/staking-genesis.json"

if sc.nodeRestartInterval > 0 {
// If node restarts enabled, do not enable round timeouts log watcher.
f.Network.DefaultLogWatcherHandlerFactories = []log.WatcherHandlerFactory{
oasis.LogAssertNoRoundFailures(),
oasis.LogAssertNoExecutionDiscrepancyDetected(),
oasis.LogAssertNoMergeDiscrepancyDetected(),
}
}

// Disable CheckTx on the client node so we can submit invalid transactions.
f.Clients[0].ConsensusDisableCheckTx = true

Expand Down

0 comments on commit 50953bf

Please sign in to comment.