Skip to content

Commit dc0422b

Browse files
Add more logs
1 parent 40e0558 commit dc0422b

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

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

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

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

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

0 commit comments

Comments
 (0)