Skip to content

Commit 894e013

Browse files
committed
wip
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
1 parent c66a30c commit 894e013

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

operator-framework-core/src/test/java/io/javaoperatorsdk/operator/processing/event/source/informer/InformerEventSourceTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ void listWithStrongConsistencyReplacesResourceFromTempCache() {
550550
.thenReturn(Map.of(ResourceID.fromResource(original), newer));
551551

552552
var mim = mock(InformerManager.class);
553-
when(mim.list(any(String.class), any())).thenReturn(Stream.of(original));
553+
when(mim.list(nullable(String.class), any())).thenReturn(Stream.of(original));
554554
doReturn(mim).when(informerEventSource).manager();
555555

556556
var result = informerEventSource.listWithStrongConsistency(null, r -> true).toList();
@@ -565,7 +565,7 @@ void listWithStrongConsistencyKeepsResourceWhenNotInTempCache() {
565565
when(temporaryResourceCache.getResources()).thenReturn(Map.of());
566566

567567
var mim = mock(InformerManager.class);
568-
when(mim.list(any(String.class), any())).thenReturn(Stream.of(original));
568+
when(mim.list(nullable(String.class), any())).thenReturn(Stream.of(original));
569569
doReturn(mim).when(informerEventSource).manager();
570570

571571
var result = informerEventSource.listWithStrongConsistency("default", r -> true).toList();

0 commit comments

Comments
 (0)