Skip to content

Commit a655613

Browse files
committed
adjust xmx value
1 parent 320dc12 commit a655613

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

.kokoro/build.sh

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

4848
case ${JOB_TYPE} in
4949
test)
50-
export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m"
5150
mvn test -B -Dclirr.skip=true -Denforcer.skip=true
5251
RETURN_CODE=$?
5352
;;

datastore-v1-proto-client/pom.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,30 @@
9797
<scope>test</scope>
9898
</dependency>
9999
</dependencies>
100+
101+
<build>
102+
<plugins>
103+
<plugin>
104+
<groupId>org.apache.maven.plugins</groupId>
105+
<artifactId>maven-surefire-plugin</artifactId>
106+
<version>3.0.0-M5</version>
107+
<configuration>
108+
<!-- Excludes integration tests and smoke tests when unit tests are run -->
109+
<excludes>
110+
<exclude>**/*SmokeTest.java</exclude>
111+
<exclude>**/IT*.java</exclude>
112+
</excludes>
113+
<reportNameSuffix>sponge_log</reportNameSuffix>
114+
<argLine>-Xmx2048m</argLine>
115+
</configuration>
116+
<dependencies>
117+
<dependency>
118+
<groupId>org.apache.maven.surefire</groupId>
119+
<artifactId>surefire-junit47</artifactId>
120+
<version>3.0.0-M5</version>
121+
</dependency>
122+
</dependencies>
123+
</plugin>
124+
</plugins>
125+
</build>
100126
</project>

datastore-v1-proto-client/src/test/java/com/google/datastore/v1/client/ChecksumEnforcingInputStreamTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ public void read_withInvalidChecksum() {
6464
// build a test instance with invalidchecksum
6565
// read 1000 bytes at a time
6666
// Since checksum should be correct, do not expect IOException
67-
try (ChecksumEnforcingInputStream instance = new ChecksumEnforcingInputStream(
67+
try (ChecksumEnforcingInputStream instance =
68+
new ChecksumEnforcingInputStream(
6869
new ByteArrayInputStream("hello there".getBytes(UTF_8)),
6970
"this checksum is invalid",
7071
digest)) {

0 commit comments

Comments
 (0)