Skip to content

Commit 21b2ef5

Browse files
committed
fix
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
1 parent 608fb09 commit 21b2ef5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

operator-framework/src/test/java/io/javaoperatorsdk/operator/baseapi/statuscache/primarycache/StatusPatchPrimaryCacheReconciler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public UpdateControl<StatusPatchPrimaryCacheCustomResource> reconcile(
3838
primary = cache.getFreshResource(primary);
3939

4040
if (primary.getStatus() != null && primary.getStatus().getValue() != latestValue) {
41-
errorPresent = false;
41+
errorPresent = true;
4242
throw new IllegalStateException(
4343
"status is not up to date. Latest value: "
4444
+ latestValue

operator-framework/src/test/java/io/javaoperatorsdk/operator/baseapi/statuscache/withlock/StatusPatchCacheWithLockReconciler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public UpdateControl<StatusPatchCacheWithLockCustomResource> reconcile(
2626
throws InterruptedException {
2727

2828
if (resource.getStatus() != null && resource.getStatus().getValue() != latestValue) {
29-
errorPresent = false;
29+
errorPresent = true;
3030
throw new IllegalStateException(
3131
"status is not up to date. Latest value: "
3232
+ latestValue

0 commit comments

Comments
 (0)