Skip to content

Commit

Permalink
Update PublisherImplTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahrogers-google authored Jan 12, 2024
1 parent f58238c commit 88a22eb
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,15 @@ public void testBatchedMessagesWithOrderingKeyByNum() throws Exception {
shutdownTestPublisher(publisher);
}

private ApiFuture<String> sendTestMessageWithOrderingKey(
Publisher publisher, String data, String orderingKey) {
return publisher.publish(
PubsubMessage.newBuilder()
.setOrderingKey(orderingKey)
.setData(ByteString.copyFromUtf8(data))
.build());
}

@Test
public void testBatchedMessagesWithOrderingKeyByDuration() throws Exception {
// Limit the batching timeout to 100 seconds.
Expand Down

0 comments on commit 88a22eb

Please sign in to comment.