diff --git a/README.md b/README.md index 4035f1eac88..bbf2267b992 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.45.0 + 26.47.0 pom import diff --git a/google-cloud-spanner/src/test/java/com/google/cloud/spanner/CloseSpannerWithOpenResultSetTest.java b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/CloseSpannerWithOpenResultSetTest.java index a489a269b22..8d622579714 100644 --- a/google-cloud-spanner/src/test/java/com/google/cloud/spanner/CloseSpannerWithOpenResultSetTest.java +++ b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/CloseSpannerWithOpenResultSetTest.java @@ -96,7 +96,12 @@ public void testBatchClient_closedSpannerWithOpenResultSet_streamsAreCancelled() } ((SpannerImpl) spanner).close(1, TimeUnit.MILLISECONDS); // This should return an error as the stream is cancelled. - SpannerException exception = assertThrows(SpannerException.class, resultSet::next); + SpannerException exception = + assertThrows( + SpannerException.class, + () -> { //noinspection StatementWithEmptyBody + while (resultSet.next()) {} + }); assertEquals(ErrorCode.CANCELLED, exception.getErrorCode()); } }