Skip to content

Commit 2581a7a

Browse files
committed
test: Advance the executor by 5 seconds in the ordering publish failure test
1 parent 759424f commit 2581a7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ public void testPublishThrowExceptionForUnsubmittedOrderingKeyMessage() throws E
630630
} catch (ExecutionException e) {
631631
assertEquals(SequentialExecutorService.CallbackExecutor.CANCELLATION_EXCEPTION, e.getCause());
632632
}
633-
fakeExecutor.advanceTime(Duration.ZERO);
633+
fakeExecutor.advanceTime(Duration.ofSeconds(5));
634634

635635
// A subsequent attempt fails immediately.
636636
ApiFuture<String> publishFuture4 = sendTestMessageWithOrderingKey(publisher, "D", "a");

0 commit comments

Comments
 (0)