Skip to content

Commit

Permalink
Bump sandbox acquisition timeout of trigger service tests to 1m (#11764)
Browse files Browse the repository at this point in the history
This matches the timeouts we set in SandboxNextFixture and I’ve seen
the 30s timeouts be insufficient on CI.

changelog_begin
changelog_end
  • Loading branch information
cocreature authored Nov 18, 2021
1 parent 4106222 commit 869b805
Showing 1 changed file with 14 additions and 10 deletions.
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

0 comments on commit 869b805

Please sign in to comment.