From c49de7a635ca258a4a026cdbd3ce782b914401c9 Mon Sep 17 00:00:00 2001 From: jrhee17 Date: Fri, 12 Apr 2024 13:39:12 +0900 Subject: [PATCH] Add lenient strictness to k8s test (#5598) Motivation: We're seeing the following error and I don't think there's much we can do about it. I propose that we just adjust the lenient setting - the original purpose of mockito strictness is probably not relevant here since we use a 3rd party's test anyways. https://ge.armeria.dev/scans/tests?search.relativeStartTime=P28D&search.tags=CI%2Cnot:PR&search.timeZoneId=Asia%2FSeoul&tests.container=com.linecorp.armeria.client.kubernetes.ArmeriaHttpHttpLoggingInterceptorTest&tests.sortField=FLAKY&tests.test=responseBodyIsNotConsumed() --- .../kubernetes/ArmeriaHttpHttpLoggingInterceptorTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kubernetes/src/test/java/com/linecorp/armeria/client/kubernetes/ArmeriaHttpHttpLoggingInterceptorTest.java b/kubernetes/src/test/java/com/linecorp/armeria/client/kubernetes/ArmeriaHttpHttpLoggingInterceptorTest.java index 09a1017262c..63734185143 100644 --- a/kubernetes/src/test/java/com/linecorp/armeria/client/kubernetes/ArmeriaHttpHttpLoggingInterceptorTest.java +++ b/kubernetes/src/test/java/com/linecorp/armeria/client/kubernetes/ArmeriaHttpHttpLoggingInterceptorTest.java @@ -18,11 +18,17 @@ import java.lang.reflect.Field; import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.junit.jupiter.MockitoExtension; +import org.mockito.junit.jupiter.MockitoSettings; +import org.mockito.quality.Strictness; import io.fabric8.kubernetes.client.http.AbstractHttpLoggingInterceptorTest; import io.fabric8.kubernetes.client.http.HttpClient; @SuppressWarnings("JUnitTestCaseWithNoTests") +@ExtendWith(MockitoExtension.class) +@MockitoSettings(strictness = Strictness.LENIENT) class ArmeriaHttpHttpLoggingInterceptorTest extends AbstractHttpLoggingInterceptorTest { @AfterEach