Browse Source

tests: fixed test performance degradation (100% C2 Compiler) by removing -Xss384k and Mockito.clearAllCaches()

pull/8151/head
Sergey Matvienko 3 years ago
parent
commit
1bf579288a
  1. 11
      application/src/test/java/org/thingsboard/server/controller/AbstractWebTest.java
  2. 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);
}
@BeforeClass
public static void beforeWebTestClass() throws Exception {
}
@AfterClass
public static void afterWebTestClass() throws Exception {
Mockito.clearAllCaches();
}
@Before
public void setupWebTest() throws Exception {
log.debug("Executing web test setup");

2
pom.xml

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

Loading…
Cancel
Save