Skip to content

Commit

Permalink
test: Reuse method to publish a message in PublisherImplTest (#277)
Browse files Browse the repository at this point in the history
We have sendTestMessage yet, there's still a test that does
not use this method.
  • Loading branch information
irvifa authored Jul 6, 2020
1 parent 012a63b commit 1bc171a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,7 @@ public void testPublishByNumBatchedMessages() throws Exception {

assertFalse(publishFuture3.isDone());

ApiFuture<String> publishFuture4 =
publisher.publish(PubsubMessage.newBuilder().setData(ByteString.copyFromUtf8("D")).build());
ApiFuture<String> publishFuture4 = sendTestMessage(publisher, "D");

assertEquals("3", publishFuture3.get());
assertEquals("4", publishFuture4.get());
Expand Down

0 comments on commit 1bc171a

Please sign in to comment.