Skip to content

Commit 86bfc2b

Browse files
Desel72claude
andcommitted
fix: use specific import for ReentrantReadWriteLock in ProcessorStoreTest
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 8df2378 commit 86bfc2b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kubernetes-client/src/test/java/io/fabric8/kubernetes/client/informers/impl/cache/ProcessorStoreTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import java.util.Arrays;
3030
import java.util.Collections;
3131
import java.util.List;
32+
import java.util.concurrent.locks.ReentrantReadWriteLock;
3233
import java.util.stream.Collectors;
3334

3435
import static org.assertj.core.api.Assertions.assertThat;
@@ -131,7 +132,7 @@ void testResyncLock() throws InterruptedException {
131132
processorStore.update(pods);
132133

133134
Mockito.doAnswer(invocation -> {
134-
assertTrue(((java.util.concurrent.locks.ReentrantReadWriteLock) podCache.getLock()).isWriteLockedByCurrentThread());
135+
assertTrue(((ReentrantReadWriteLock) podCache.getLock()).isWriteLockedByCurrentThread());
135136
return null;
136137
}).when(processor).distribute(Mockito.any(ProcessorListener.Notification.class), Mockito.anyBoolean());
137138
processorStore.resync();

0 commit comments

Comments
 (0)