Skip to content

Commit 28418b0

Browse files
committed
fix tests
1 parent 26c365b commit 28418b0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/spi/v1/KeyRangeCacheTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ public void skipsExplicitlyExcludedTablet() {
114114
.setDistance(0)))
115115
.build());
116116

117+
// Pre-create endpoints so getIfPresent() returns them.
118+
endpointCache.get("server1");
119+
endpointCache.get("server2");
120+
117121
RoutingHint.Builder hint = RoutingHint.newBuilder().setKey(bytes("a"));
118122
ChannelEndpoint server =
119123
cache.fillRoutingHint(

0 commit comments

Comments
 (0)