Browse Source

Merge pull request #8151 from smatvienko-tb/fix/test-performace-fix

[3.5] Test performace fix
pull/8162/head
Andrew Shvayka 4 years ago
committed by GitHub
parent
commit
baddd45d82
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      application/src/test/java/org/thingsboard/server/controller/AbstractWebTest.java
  2. 1
      application/src/test/resources/application-test.properties
  3. 2
      pom.xml

11
application/src/test/java/org/thingsboard/server/controller/AbstractWebTest.java

@ -211,17 +211,6 @@ public abstract class AbstractWebTest extends AbstractInMemoryStorageTest {
this.mappingJackson2HttpMessageConverter); this.mappingJackson2HttpMessageConverter);
} }
@BeforeClass
public static void beforeWebTestClass() throws Exception {
}
@AfterClass
public static void afterWebTestClass() throws Exception {
Mockito.clearAllCaches();
}
@Before @Before
public void setupWebTest() throws Exception { public void setupWebTest() throws Exception {
log.debug("Executing web test setup"); log.debug("Executing web test setup");

1
application/src/test/resources/application-test.properties

@ -67,4 +67,3 @@ sql.ttl.audit_logs.ttl=2592000
sql.edge_events.partition_size=168 sql.edge_events.partition_size=168
sql.ttl.edge_events.edge_event_ttl=2592000 sql.ttl.edge_events.edge_event_ttl=2592000
spring.test.context.cache.maxSize=1

2
pom.xml

@ -659,7 +659,7 @@
<version>${surefire.version}</version> <version>${surefire.version}</version>
<configuration> <configuration>
<argLine> <argLine>
--illegal-access=permit -Xss384k -XX:+UseStringDeduplication -XX:MaxGCPauseMillis=20 --illegal-access=permit -XX:+UseStringDeduplication -XX:MaxGCPauseMillis=20
</argLine> </argLine>
</configuration> </configuration>
</plugin> </plugin>

Loading…
Cancel
Save