From 4f6ee8e0922dfc6cc152a3bbdb7138a745475c5e Mon Sep 17 00:00:00 2001 From: osulzhenko <125548596+osulzhenko@users.noreply.github.com> Date: Wed, 23 Oct 2024 12:29:07 +0300 Subject: [PATCH] Tests: Increase default number for `tests.max-container-count` (#3518) --- docs/developers/functional-tests.md | 2 +- pom.xml | 2 +- .../server/functional/testcontainers/PbsServiceFactory.groovy | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/developers/functional-tests.md b/docs/developers/functional-tests.md index c9e827b370a..523466fb0b0 100644 --- a/docs/developers/functional-tests.md +++ b/docs/developers/functional-tests.md @@ -70,7 +70,7 @@ Functional tests need to have name template **.\*Spec.groovy** **Properties:** `launchContainers` - responsible for starting the MockServer and the MySQLContainer container. Default value is false to not launch containers for unit tests. -`tests.max-container-count` - maximum number of simultaneously running PBS containers. Default value is 2. +`tests.max-container-count` - maximum number of simultaneously running PBS containers. Default value is 5. `skipFunctionalTests` - allow to skip funtional tests. Default value is false. `skipUnitTests` - allow to skip unit tests. Default value is false. diff --git a/pom.xml b/pom.xml index 8c5d08b1dc6..e674293243e 100644 --- a/pom.xml +++ b/pom.xml @@ -645,7 +645,7 @@ ${mockserver.version} ${project.version} - 2 + 5 false diff --git a/src/test/groovy/org/prebid/server/functional/testcontainers/PbsServiceFactory.groovy b/src/test/groovy/org/prebid/server/functional/testcontainers/PbsServiceFactory.groovy index a0c5631aac6..e0911a2b1ca 100644 --- a/src/test/groovy/org/prebid/server/functional/testcontainers/PbsServiceFactory.groovy +++ b/src/test/groovy/org/prebid/server/functional/testcontainers/PbsServiceFactory.groovy @@ -64,6 +64,6 @@ class PbsServiceFactory { private static int getMaxContainerCount() { USE_FIXED_CONTAINER_PORTS ? 1 - : SystemProperties.getPropertyOrDefault("tests.max-container-count", 2) + : SystemProperties.getPropertyOrDefault("tests.max-container-count", 5) } }