Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

Commit f33a0d9

Browse files
olavloiteodeke-em
authored andcommitted
test: fix failing test cases
1 parent 96bb8f4 commit f33a0d9

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

google-cloud-spanner/src/main/java/com/google/cloud/spanner/SessionClient.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,6 @@ SessionImpl createSession() {
241241
XGoogSpannerRequestId reqId = nextRequestId(channelId, 1);
242242
ISpan span = spanner.getTracer().spanBuilder(SpannerImpl.CREATE_SESSION, this.commonAttributes);
243243
try (IScope s = spanner.getTracer().withSpan(span)) {
244-
XGoogSpannerRequestId reqId = this.nextRequestId(channelId, 1);
245244
com.google.spanner.v1.Session session =
246245
spanner
247246
.getRpc()

google-cloud-spanner/src/main/java/com/google/cloud/spanner/XGoogSpannerRequestId.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public XGoogSpannerRequestId nextRequestId(long channelId, int attempt) {
160160
}
161161
}
162162

163-
public static void assertMonotonicityOfIds(String prefix, List<XGoogSpannerRequestId> reqIds) {
163+
static void assertMonotonicityOfIds(String prefix, List<XGoogSpannerRequestId> reqIds) {
164164
int size = reqIds.size();
165165

166166
List<String> violations = new ArrayList<>();
@@ -172,7 +172,7 @@ public static void assertMonotonicityOfIds(String prefix, List<XGoogSpannerReque
172172
}
173173
}
174174

175-
if (violations.size() == 0) {
175+
if (violations.isEmpty()) {
176176
return;
177177
}
178178

0 commit comments

Comments
 (0)