Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xwiki-platform
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XWiki
xwiki-platform
Commits
5fea7198
Commit
5fea7198
authored
4 years ago
by
Vincent Massol
Browse files
Options
Downloads
Patches
Plain Diff
[Misc] Increase even more the DB timeouts
parent
9b6f435a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xwiki-platform-core/xwiki-platform-test/xwiki-platform-test-docker/src/main/java/org/xwiki/test/docker/internal/junit5/database/DatabaseContainerExecutor.java
+6
-4
6 additions, 4 deletions
...r/internal/junit5/database/DatabaseContainerExecutor.java
with
6 additions
and
4 deletions
xwiki-platform-core/xwiki-platform-test/xwiki-platform-test-docker/src/main/java/org/xwiki/test/docker/internal/junit5/database/DatabaseContainerExecutor.java
+
6
−
4
View file @
5fea7198
...
...
@@ -265,14 +265,16 @@ private void startDatabaseContainer(JdbcDatabaseContainer<?> databaseContainer,
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.
// a lot longer than that and thus our SQL code in grantMySQLPrivileges() is failing because after the timeout
// is reached, TC considers that the DB container is started and thus our SQL code is executed even though the
// DB is not started, and this, it fails. We've increased the timeouts to 15mn which is a lot and we might need
// to debug to find out why MySQL is taking so long to start in these cases.
databaseContainer
.
withExposedPorts
(
port
)
.
withNetwork
(
Network
.
SHARED
)
.
withNetworkAliases
(
"xwikidb"
)
.
withStartupTimeoutSeconds
(
24
0
)
.
withConnectTimeoutSeconds
(
24
0
);
.
withStartupTimeoutSeconds
(
90
0
)
.
withConnectTimeoutSeconds
(
90
0
);
start
(
databaseContainer
,
testConfiguration
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment