File tree Expand file tree Collapse file tree
main/java/com/google/cloud/pubsub/spi/v1
test/java/com/google/cloud/pubsub/spi/v1 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -364,7 +364,7 @@ public void onFailure(Throwable t) {
364364 computeNextBackoffDelayMs (outstandingBatch , retrySettings , longRandom );
365365
366366 if (!isRetryable (t )
367- || ( retrySettings .getMaxAttempts () > 0 && outstandingBatch .getAttempt () > retrySettings .getMaxAttempts () )
367+ || retrySettings .getMaxAttempts () > 0 && outstandingBatch .getAttempt () > retrySettings .getMaxAttempts ()
368368 || System .currentTimeMillis () + nextBackoffDelay
369369 > outstandingBatch .creationTime
370370 + retrySettings .getTotalTimeout ().toMillis ()) {
Original file line number Diff line number Diff line change @@ -298,10 +298,9 @@ public void testPublishFailureRetries_retriesDisabled() throws Exception {
298298 try {
299299 publishFuture1 .get ();
300300 } finally {
301- assertTrue (testPublisherServiceImpl .getCapturedRequests ().size () == 1 );
301+ assertSame (testPublisherServiceImpl .getCapturedRequests ().size (), 1 );
302302 publisher .shutdown ();
303303 }
304- publisher .shutdown ();
305304 }
306305
307306 @ Test
You can’t perform that action at this time.
0 commit comments