Skip to content

Commit f3b7b68

Browse files
fix: allow numOfInstances=3 when passing in env variable (#1067)
1 parent 43206d7 commit f3b7b68

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

tests/integration/host/src/test/java/integration/host/TestEnvironmentProvider.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,12 @@ public Stream<TestTemplateInvocationContext> provideTestTemplateInvocationContex
132132
// Multi-AZ Instances supports only 1 instance
133133
continue;
134134
}
135-
if (deployment == DatabaseEngineDeployment.AURORA && numOfInstances == 3) {
136-
// Aurora supports clusters with 3 instances but running such tests is similar
137-
// to running tests on 5-instance cluster.
138-
// Let's save some time and skip tests for this configuration
139-
continue;
140-
}
135+
if (deployment == DatabaseEngineDeployment.AURORA && numOfInstances == 3 && config.numInstances == null) {
136+
// Aurora supports clusters with 3 instances but running such tests is similar
137+
// to running tests on 5-instance cluster.
138+
// Let's save some time and skip tests for this configuration
139+
continue;
140+
}
141141

142142
for (TargetPythonVersion targetPythonVersion : TargetPythonVersion.values()) {
143143
if (targetPythonVersion == TargetPythonVersion.PYTHON_3_11 && config.excludePython311) {

0 commit comments

Comments
 (0)