Skip to content

Commit 464c573

Browse files
authored
chore: run it tests serially (#1458)
* chore: fix failsafe plugin hanging * chore: try running all tests serially
1 parent 159c026 commit 464c573

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

.kokoro/build.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ set +e
4747

4848
case ${JOB_TYPE} in
4949
test)
50-
mvn test -B -Dclirr.skip=true -Denforcer.skip=true
50+
mvn test -B \
51+
-Dclirr.skip=true \
52+
-Denforcer.skip=true \
53+
-Djava.net.preferIPv4Stack=true
5154
RETURN_CODE=$?
5255
;;
5356
lint)
@@ -62,6 +65,7 @@ integration)
6265
mvn -B ${INTEGRATION_TEST_ARGS} \
6366
-ntp \
6467
-Penable-integration-tests \
68+
-Djava.net.preferIPv4Stack=true \
6569
-DtrimStackTrace=false \
6670
-Dclirr.skip=true \
6771
-Denforcer.skip=true \
@@ -73,6 +77,7 @@ slowtests)
7377
mvn -B ${INTEGRATION_TEST_ARGS} \
7478
-ntp \
7579
-Pslow-tests \
80+
-Djava.net.preferIPv4Stack=true \
7681
-DskipITs=false \
7782
-DtrimStackTrace=false \
7883
-Dclirr.skip=true \

google-cloud-spanner/pom.xml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -81,19 +81,7 @@
8181
<execution>
8282
<id>default</id>
8383
<configuration>
84-
<groups>com.google.cloud.spanner.SerialIntegrationTest</groups>
85-
</configuration>
86-
</execution>
87-
<!-- Executes parallel integration tests -->
88-
<execution>
89-
<id>parallel-integration-test</id>
90-
<goals>
91-
<goal>integration-test</goal>
92-
</goals>
93-
<configuration>
94-
<groups>com.google.cloud.spanner.ParallelIntegrationTest</groups>
95-
<forkCount>8</forkCount>
96-
<reuseForks>true</reuseForks>
84+
<groups>com.google.cloud.spanner.SerialIntegrationTest, com.google.cloud.spanner.ParallelIntegrationTest</groups>
9785
</configuration>
9886
</execution>
9987
</executions>

0 commit comments

Comments
 (0)