File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/spi/v1 Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1201,8 +1201,7 @@ public void testFallbackIntegration_doesNotSwitchWhenThresholdNotMet() throws Ex
12011201 // Verify Fallback via Metrics
12021202 Collection <MetricData > metrics = metricReader .collectAllMetrics ();
12031203 boolean fallbackOccurred =
1204- metrics .stream ()
1205- .anyMatch (md -> md .getName ().contains ("fallback_count" ) && hasValue (md ));
1204+ metrics .stream ().anyMatch (md -> md .getName ().contains ("fallback_count" ) && hasValue (md ));
12061205
12071206 assertFalse ("Fallback metric should not be present" , fallbackOccurred );
12081207
@@ -1282,8 +1281,7 @@ public void testFallbackIntegration_switchesToFallbackOnFailure() throws Excepti
12821281 // Verify Fallback via Metrics
12831282 Collection <MetricData > metrics = metricReader .collectAllMetrics ();
12841283 boolean fallbackOccurred =
1285- metrics .stream ()
1286- .anyMatch (md -> md .getName ().contains ("fallback_count" ) && hasValue (md ));
1284+ metrics .stream ().anyMatch (md -> md .getName ().contains ("fallback_count" ) && hasValue (md ));
12871285
12881286 assertTrue (
12891287 "Fallback metric should be present, indicating GcpFallbackChannel is active" ,
You can’t perform that action at this time.
0 commit comments