Skip to content

Commit 27f72a3

Browse files
chore: generate libraries at Mon Jan 6 10:11:56 UTC 2025
1 parent dc0422b commit 27f72a3

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

google-cloud-spanner/src/test/java/com/google/cloud/spanner/RetryOnInvalidatedSessionTest.java

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,12 @@ public Long apply(StructReader input) {
8585
public boolean failOnInvalidatedSession;
8686

8787
@Rule
88-
public TestRule watcher = new TestWatcher() {
89-
protected void starting(Description description) {
90-
System.out.println("Starting test: " + description.getMethodName());
91-
}
92-
};
88+
public TestRule watcher =
89+
new TestWatcher() {
90+
protected void starting(Description description) {
91+
System.out.println("Starting test: " + description.getMethodName());
92+
}
93+
};
9394

9495
@Parameters(name = "fail on invalidated session = {0}")
9596
public static Collection<Object[]> data() {
@@ -222,8 +223,10 @@ public void setUp() throws InterruptedException {
222223
!= failOnInvalidatedSession) {
223224
System.out.println("Recreating spanner instance");
224225
if (spanner != null) {
225-
System.out.printf("Closing the spanner instance %s %s",
226-
spanner.getOptions().getSessionPoolOptions().isFailIfSessionNotFound(), failOnInvalidatedSession);
226+
System.out.printf(
227+
"Closing the spanner instance %s %s",
228+
spanner.getOptions().getSessionPoolOptions().isFailIfSessionNotFound(),
229+
failOnInvalidatedSession);
227230
spanner.close();
228231
}
229232
SessionPoolOptions.Builder builder = SessionPoolOptions.newBuilder().setFailOnSessionLeak();

0 commit comments

Comments
 (0)