From 45211cb50208e8c2af5c1f0c2ad90003bbdba6de Mon Sep 17 00:00:00 2001 From: hannahrogers-google <52459909+hannahrogers-google@users.noreply.github.com> Date: Fri, 12 Jan 2024 10:48:51 -0800 Subject: [PATCH] Update PublisherImplTest.java --- .../com/google/cloud/pubsub/v1/PublisherImplTest.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java index 4223b3bb6..e452548b1 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java @@ -550,7 +550,6 @@ public void testResumePublish() throws Exception { // Submit new requests with orderA that should fail. ApiFuture future3 = sendTestMessageWithOrderingKey(publisher, "m3", "orderA"); - ApiFuture future4 = sendTestMessageWithOrderingKey(publisher, "m4", "orderA"); try { future3.get(); @@ -559,13 +558,6 @@ public void testResumePublish() throws Exception { assertEquals(SequentialExecutorService.CallbackExecutor.CANCELLATION_EXCEPTION, e.getCause()); } - try { - future4.get(); - Assert.fail("This should fail."); - } catch (ExecutionException e) { - assertEquals(SequentialExecutorService.CallbackExecutor.CANCELLATION_EXCEPTION, e.getCause()); - } - // Submit a new request with orderB, which should succeed ApiFuture future5 = sendTestMessageWithOrderingKey(publisher, "m5", "orderB"); ApiFuture future6 = sendTestMessageWithOrderingKey(publisher, "m6", "orderB");