Skip to content

Commit

Permalink
Add more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
sakthivelmanii committed Jan 6, 2025
1 parent 40e0558 commit dc0422b
Showing 1 changed file with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,11 @@ public Long apply(StructReader input) {
public boolean failOnInvalidatedSession;

@Rule
public TestRule watcher =
new TestWatcher() {
protected void starting(Description description) {
System.out.println("Starting test: " + description.getMethodName());
}
};
public TestRule watcher = new TestWatcher() {
protected void starting(Description description) {
System.out.println("Starting test: " + description.getMethodName());
}
};

@Parameters(name = "fail on invalidated session = {0}")
public static Collection<Object[]> data() {
Expand Down Expand Up @@ -223,10 +222,8 @@ public void setUp() throws InterruptedException {
!= failOnInvalidatedSession) {
System.out.println("Recreating spanner instance");
if (spanner != null) {
System.out.printf(
"Closing the spanner instance %s %s",
spanner.getOptions().getSessionPoolOptions().isFailIfSessionNotFound(),
failOnInvalidatedSession);
System.out.printf("Closing the spanner instance %s %s",
spanner.getOptions().getSessionPoolOptions().isFailIfSessionNotFound(), failOnInvalidatedSession);
spanner.close();
}
SessionPoolOptions.Builder builder = SessionPoolOptions.newBuilder().setFailOnSessionLeak();
Expand Down

0 comments on commit dc0422b

Please sign in to comment.