Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump sandbox acquisition timeout of trigger service tests to 1m #11764

Merged
merged 1 commit into from
Nov 18, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -306,16 +306,20 @@ trait SandboxFixture extends BeforeAndAfterAll with AbstractAuthFixture with Akk
implicit val context: ResourceContext = ResourceContext(system.dispatcher)
// The owner spins up its own actor system which avoids deadlocks
// during shutdown.
resource = new OwnedResource(for {
// We must provide a random database if none is provided.
// The default is to always use the same index database URL, which means that tests can
// share an index. As you can imagine, this causes all manner of issues, the most important
// of which is that the ledger and index databases will be out of sync.
jdbcUrl <- SandboxBackend.H2Database.owner
.map(info => Some(info.jdbcUrl))
port <- new SandboxRunner(sandboxConfig.copy(jdbcUrl = jdbcUrl))
channel <- GrpcClientResource.owner(port)
} yield (port, channel))
resource = new OwnedResource(
for {
// We must provide a random database if none is provided.
// The default is to always use the same index database URL, which means that tests can
// share an index. As you can imagine, this causes all manner of issues, the most important
// of which is that the ledger and index databases will be out of sync.
jdbcUrl <- SandboxBackend.H2Database.owner
.map(info => Some(info.jdbcUrl))
port <- new SandboxRunner(sandboxConfig.copy(jdbcUrl = jdbcUrl))
channel <- GrpcClientResource.owner(port)
} yield (port, channel),
acquisitionTimeout = 1.minute,
releaseTimeout = 1.minute,
)
resource.setup()
}

Expand Down