More JVM memory for Gradle

* Fix race condition in the `KafkaOutboundAdapterParserTests`
This commit is contained in:
Artem Bilan
2021-02-23 11:28:04 -05:00
parent ba3c9bf00f
commit 9c686ddcb7
2 changed files with 4 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
version=5.5.0-SNAPSHOT
org.gradle.jvmargs=-Xmx2g -Dfile.encoding=UTF-8
org.gradle.jvmargs=-Xms512m -Xmx4g -XX:MaxPermSize=1024m -XX:MaxMetaspaceSize=1g -Dkotlin.daemon.jvm.options="-Xmx1g" -Dfile.encoding=UTF-8
org.gradle.caching=true
org.gradle.parallel=true
kotlin.stdlib.default.dependency=false

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2013-2020 the original author or authors.
* Copyright 2013-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -101,7 +101,7 @@ class KafkaOutboundAdapterParserTests {
@Test
void testSyncMode() {
MockProducer<Integer, String> mockProducer =
new MockProducer<Integer, String>(false, new IntegerSerializer(), new StringSerializer()) {
new MockProducer<>(false, new IntegerSerializer(), new StringSerializer()) {
@Override
public void close(Duration timeout) {
@@ -121,7 +121,7 @@ class KafkaOutboundAdapterParserTests {
handler.afterPropertiesSet();
handler.setSync(true);
handler.setSendTimeout(10);
handler.setSendTimeout(10_000);
handler.setTimeoutBuffer(200);
handler.setTopicExpression(new LiteralExpression("foo"));