From 1a4e9c22acb20f43ac96e798d669400fa0a3e236 Mon Sep 17 00:00:00 2001 From: John Blum Date: Tue, 23 Mar 2021 12:35:57 -0700 Subject: [PATCH] Change assertion on cache instance to assert as a peer cache. --- ...ringBootApacheGeodePeerCacheApplicationIntegrationTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/cache/peer/SpringBootApacheGeodePeerCacheApplicationIntegrationTests.java b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/cache/peer/SpringBootApacheGeodePeerCacheApplicationIntegrationTests.java index dea1a4ab..eb7a7960 100644 --- a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/cache/peer/SpringBootApacheGeodePeerCacheApplicationIntegrationTests.java +++ b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/cache/peer/SpringBootApacheGeodePeerCacheApplicationIntegrationTests.java @@ -67,7 +67,7 @@ public class SpringBootApacheGeodePeerCacheApplicationIntegrationTests extends I public void peerCacheWithPeerLocalRegionAreAvailable() { Optional.ofNullable(this.peerCache) - .map(it -> assertThat(GemfireUtils.isClient(it)).isFalse()) + .map(it -> assertThat(GemfireUtils.isPeer(it)).isTrue()) .orElseThrow(() -> newIllegalStateException("Peer cache was null")); Region example = this.peerCache.getRegion("/Example");