Skip to content
Snippets Groups Projects
Commit 94383ed6 authored by Vincent Massol's avatar Vincent Massol
Browse files

[Misc] Trying with double DB timeouts

parent 446922bc
No related branches found
No related tags found
No related merge requests found
......@@ -264,10 +264,15 @@ private void startOracleContainer(TestConfiguration testConfiguration) throws Ex
private void startDatabaseContainer(JdbcDatabaseContainer<?> databaseContainer, int port,
TestConfiguration testConfiguration) throws Exception
{
// Note: default startup and connect timeout are at 120s (2mn) but we've noticed cases when it was taking
// longer than that on XWiki and thus our SQL code in grantMySQLPrivileges() is failing because of that.
// Thus we're doubling the timeouts to be safe.
databaseContainer
.withExposedPorts(port)
.withNetwork(Network.SHARED)
.withNetworkAliases("xwikidb");
.withNetworkAliases("xwikidb")
.withStartupTimeoutSeconds(240)
.withConnectTimeoutSeconds(240);
start(databaseContainer, testConfiguration);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment