Attempt to fix failing CI builds

This commit is contained in:
Sam Brannen
2020-10-24 23:27:18 +02:00
parent 1c82ba425b
commit 1a50732daa
2 changed files with 2 additions and 1 deletions

View File

@@ -75,7 +75,7 @@ public abstract class TestContextAnnotationUtils {
private static final ConcurrentLruCache<Class<?>, EnclosingConfiguration> cachedEnclosingConfigurationModes = private static final ConcurrentLruCache<Class<?>, EnclosingConfiguration> cachedEnclosingConfigurationModes =
new ConcurrentLruCache<>(32, TestContextAnnotationUtils::lookUpEnclosingConfiguration); new ConcurrentLruCache<>(32, TestContextAnnotationUtils::lookUpEnclosingConfiguration);
private static EnclosingConfiguration defaultEnclosingConfigurationMode; private static volatile EnclosingConfiguration defaultEnclosingConfigurationMode;
/** /**
* Find the first annotation of the specified {@code annotationType} within * Find the first annotation of the specified {@code annotationType} within

View File

@@ -57,6 +57,7 @@ class TestContextAnnotationUtilsTests {
class SearchEnclosingClassTests { class SearchEnclosingClassTests {
@BeforeEach @BeforeEach
@AfterEach
void clearCaches() { void clearCaches() {
TestContextAnnotationUtils.clearCaches(); TestContextAnnotationUtils.clearCaches();
} }