File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ private void checkLocalConnection() {
775775
}
776776
} catch (UnavailableException e) {
777777
String msg;
778-
if (emulatorHost == null) {
778+
if (getHost() != null) {
779779
msg =
780780
String.format(
781781
"The connection string '%s' contains host '%s', but no running"
Original file line numberDiff line numberDiff line change
@@ -492,8 +492,6 @@ public void testLocalConnectionError() {
492492
.contains(
493493
String.format(
494494
"The connection string '%s' contains host 'localhost:1', but no running", uri));
495-
} finally {
496-
SpannerPool.closeSpannerPool();
497495
}
498496
}
499497

0 commit comments

Comments
 (0)