Skip to content

Commit fa26af9

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

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/event/source/controller/ControllerEventSource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public class ControllerEventSource<T extends HasMetadata>
4949
@SuppressWarnings({"unchecked", "rawtypes"})
5050
public ControllerEventSource(Controller<T> controller) {
5151
super(
52-
NAME,
52+
NAME,
5353
controller.getCRClient(),
5454
controller.getConfiguration(),
5555
controller.getConfiguration().getInformerConfig().isComparableResourceVersions());

operator-framework/src/test/java/io/javaoperatorsdk/operator/dependent/informerrelatedbehavior/InformerRelatedBehaviorITS.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -306,18 +306,14 @@ private void assertRuntimeInfoNoCRPermission(Operator operator) {
306306
.unhealthyEventSources()
307307
.get(INFORMER_RELATED_BEHAVIOR_TEST_RECONCILER);
308308
assertThat(unhealthyEventSources).isNotEmpty();
309-
assertThat(unhealthyEventSources.get(ControllerEventSource.NAME))
310-
.isNotNull();
309+
assertThat(unhealthyEventSources.get(ControllerEventSource.NAME)).isNotNull();
311310
var informerHealthIndicators =
312311
operator
313312
.getRuntimeInfo()
314313
.unhealthyInformerWrappingEventSourceHealthIndicator()
315314
.get(INFORMER_RELATED_BEHAVIOR_TEST_RECONCILER);
316315
assertThat(informerHealthIndicators).isNotEmpty();
317-
assertThat(
318-
informerHealthIndicators
319-
.get(ControllerEventSource.NAME)
320-
.informerHealthIndicators())
316+
assertThat(informerHealthIndicators.get(ControllerEventSource.NAME).informerHealthIndicators())
321317
.hasSize(1);
322318
}
323319

0 commit comments

Comments
 (0)