Skip to content

Commit 0664afc

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

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

operator-framework/src/test/java/io/javaoperatorsdk/operator/baseapi/cachingfilteringupdate/CachingFilteringUpdateIT.java

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ class CachingFilteringUpdateIT {
3333

3434
@RegisterExtension
3535
LocallyRunOperatorExtension operator =
36-
LocallyRunOperatorExtension.builder()
37-
.withReconciler(new CachingFilteringUpdateReconciler())
38-
.build();
36+
LocallyRunOperatorExtension.builder().withReconciler(reconciler).build();
3937

4038
@Test
4139
void testResourceAccessAfterUpdate() {
@@ -47,9 +45,7 @@ void testResourceAccessAfterUpdate() {
4745
.atMost(Duration.ofMinutes(1))
4846
.until(
4947
() -> {
50-
if (operator
51-
.getReconcilerOfType(CachingFilteringUpdateReconciler.class)
52-
.isIssueFound()) {
48+
if (reconciler.isIssueFound()) {
5349
// Stop waiting as soon as an issue is detected.
5450
return true;
5551
}
@@ -63,9 +59,7 @@ void testResourceAccessAfterUpdate() {
6359
&& Boolean.TRUE.equals(res.getStatus().getUpdated());
6460
});
6561

66-
if (operator
67-
.getReconcilerOfType(CachingFilteringUpdateReconciler.class)
68-
.isIssueFound()) {
62+
if (operator.getReconcilerOfType(CachingFilteringUpdateReconciler.class).isIssueFound()) {
6963
throw new IllegalStateException("Error already found.");
7064
}
7165

0 commit comments

Comments
 (0)