Increase timeout for heavy tests in ParticipantPruningIT (#10894)

CHANGELOG_BEGIN
CHANGELOG_END
This commit is contained in:
tudor-da 2021-09-15 10:52:33 +02:00 committed by GitHub
parent 9093c6c7b3
commit 9a1a1015f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -189,7 +189,6 @@ conformance_test(
test_tool_args = [ test_tool_args = [
"--verbose", "--verbose",
"--concurrent-test-runs=1", # lowered from default #procs to reduce flakes - details in https://github.com/digital-asset/daml/issues/7316 "--concurrent-test-runs=1", # lowered from default #procs to reduce flakes - details in https://github.com/digital-asset/daml/issues/7316
"--timeout-scale-factor=4", # provide additional time to avoid timing on on longer tests such as PRLocalAndNonLocalRetroactiveDivulgences or PRImmediateAndRetroactiveDivulgence
"--include=ParticipantPruningIT", "--include=ParticipantPruningIT",
], ],
) if not is_windows else None ) if not is_windows else None

View File

@ -596,6 +596,8 @@ class ParticipantPruningIT extends LedgerTestSuite {
"Divulgence pruning succeeds", "Divulgence pruning succeeds",
allocate(SingleParty, SingleParty), allocate(SingleParty, SingleParty),
runConcurrently = false, // pruning call may interact with other tests runConcurrently = false, // pruning call may interact with other tests
// Higher timeout - The test generates a significant number of events
timeoutScale = 4.0,
)(implicit ec => { case Participants(Participant(alpha, alice), Participant(beta, bob)) => )(implicit ec => { case Participants(Participant(alpha, alice), Participant(beta, bob)) =>
for { for {
divulgence <- createDivulgence(alice, bob, alpha, beta) divulgence <- createDivulgence(alice, bob, alpha, beta)
@ -618,6 +620,8 @@ class ParticipantPruningIT extends LedgerTestSuite {
"Divuglence pruning succeeds if first divulgence is not a disclosure but happens in the same transaction as the create", "Divuglence pruning succeeds if first divulgence is not a disclosure but happens in the same transaction as the create",
allocate(SingleParty, SingleParty), allocate(SingleParty, SingleParty),
runConcurrently = false, // pruning call may interact with other tests runConcurrently = false, // pruning call may interact with other tests
// Higher timeout - The test generates a significant number of events
timeoutScale = 4.0,
)(implicit ec => { case Participants(Participant(alpha, alice), Participant(beta, bob)) => )(implicit ec => { case Participants(Participant(alpha, alice), Participant(beta, bob)) =>
for { for {
divulgence <- createDivulgence(alice, bob, alpha, beta) divulgence <- createDivulgence(alice, bob, alpha, beta)
@ -642,6 +646,8 @@ class ParticipantPruningIT extends LedgerTestSuite {
"Immediate divulgence pruning succeeds", "Immediate divulgence pruning succeeds",
allocate(SingleParty, SingleParty), allocate(SingleParty, SingleParty),
runConcurrently = false, // pruning call may interact with other tests runConcurrently = false, // pruning call may interact with other tests
// Higher timeout - The test generates a significant number of events
timeoutScale = 4.0,
)(implicit ec => { case Participants(Participant(alpha, alice), Participant(beta, bob)) => )(implicit ec => { case Participants(Participant(alpha, alice), Participant(beta, bob)) =>
for { for {
divulgence <- createDivulgence(alice, bob, alpha, beta) divulgence <- createDivulgence(alice, bob, alpha, beta)