From e1ff23aac8e99a5f39ed3d270ae1a7ba00c78d92 Mon Sep 17 00:00:00 2001 From: Robert Autenrieth Date: Tue, 12 Oct 2021 22:52:22 +0200 Subject: [PATCH] Increase timeout for reset service tests --- ledger/sandbox/BUILD.bazel | 5 ++++- .../services/reset/ResetServiceOnPostgresqlIT.scala | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ledger/sandbox/BUILD.bazel b/ledger/sandbox/BUILD.bazel index 4ea06780b280..0c79a4b8f118 100644 --- a/ledger/sandbox/BUILD.bazel +++ b/ledger/sandbox/BUILD.bazel @@ -160,6 +160,7 @@ reset_service_pattern = "src/test/suite/**/*ResetService*.scala" "//ledger/test-common/test-certificates", openssl_executable, ], + size = size, flaky = flaky, jvm_flags = [ "-Djava.security.debug=\"certpath ocsp\"", # This facilitates debugging of the OCSP checks mechanism @@ -238,18 +239,20 @@ reset_service_pattern = "src/test/suite/**/*ResetService*.scala" "@maven//:org_slf4j_slf4j_api", ], ) - for (suffix, pattern, exclusions, flaky) in [ + for (suffix, pattern, exclusions, flaky, size) in [ ( "", "src/test/suite/**/*.scala", [reset_service_pattern], False, + "medium", # Default timeout of 5min ), ( "-resetservice", reset_service_pattern, [], True, + "large", # Reset service tests have a large variance in their run time, use a timeout of 15min ), ] ] diff --git a/ledger/sandbox/src/test/suite/scala/platform/sandboxnext/services/reset/ResetServiceOnPostgresqlIT.scala b/ledger/sandbox/src/test/suite/scala/platform/sandboxnext/services/reset/ResetServiceOnPostgresqlIT.scala index 9fa8913204b6..805fc10d271f 100644 --- a/ledger/sandbox/src/test/suite/scala/platform/sandboxnext/services/reset/ResetServiceOnPostgresqlIT.scala +++ b/ledger/sandbox/src/test/suite/scala/platform/sandboxnext/services/reset/ResetServiceOnPostgresqlIT.scala @@ -11,5 +11,5 @@ final class ResetServiceOnPostgresqlIT extends ResetServiceITBase with SandboxNextFixture with SandboxBackend.Postgresql { - override def spanScaleFactor: Double = super.spanScaleFactor * 4 + override def spanScaleFactor: Double = super.spanScaleFactor * 8 }