Fix ci mode

This commit is contained in:
Andrea Cavalli 2021-09-10 13:42:02 +02:00
parent c467d5f2ba
commit 32300d63ac
4 changed files with 7 additions and 4 deletions

View File

@ -2,6 +2,7 @@ package it.cavallium.dbengine;
import static it.cavallium.dbengine.DbTestUtils.destroyAllocator;
import static it.cavallium.dbengine.DbTestUtils.ensureNoLeaks;
import static it.cavallium.dbengine.DbTestUtils.isCIMode;
import static it.cavallium.dbengine.DbTestUtils.newAllocator;
import static it.cavallium.dbengine.DbTestUtils.tempDb;
import static it.cavallium.dbengine.DbTestUtils.tempDictionary;
@ -36,7 +37,9 @@ public abstract class TestDictionary {
@AfterEach
public void afterEach() {
ensureNoLeaks(allocator.allocator(), true, false);
if (!isCIMode()) {
ensureNoLeaks(allocator.allocator(), true, false);
}
destroyAllocator(allocator);
}

View File

@ -88,7 +88,7 @@ public abstract class TestDictionaryMap {
@AfterEach
public void afterEach() {
if (checkLeaks) {
if (!isCIMode() && checkLeaks) {
ensureNoLeaks(allocator.allocator(), true, false);
}
destroyAllocator(allocator);

View File

@ -166,7 +166,7 @@ public abstract class TestDictionaryMapDeep {
@AfterEach
public void afterEach() {
if (checkLeaks) {
if (!isCIMode() && checkLeaks) {
ensureNoLeaks(allocator.allocator(), true, false);
}
destroyAllocator(allocator);

View File

@ -108,7 +108,7 @@ public abstract class TestDictionaryMapDeepHashMap {
@AfterEach
public void afterEach() {
if (checkLeaks) {
if (!isCIMode() && checkLeaks) {
ensureNoLeaks(allocator.allocator(), true, false);
}
destroyAllocator(allocator);