Skip to content

Commit

Permalink
fix: adjust thresholds in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sjvanrossum committed Jul 29, 2024
1 parent 05c8cbe commit 9fdbf3d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ public void testLargeMessagesDoNotReorderBatches() throws Exception {
Publisher.Builder.DEFAULT_BATCHING_SETTINGS
.toBuilder()
.setElementCountThreshold(10L)
.setRequestByteThreshold(20L)
.setRequestByteThreshold(64L)
.setDelayThreshold(Duration.ofSeconds(100))
.build())
.setEnableMessageOrdering(true)
Expand Down Expand Up @@ -1139,7 +1139,7 @@ public void testPublishFlowControl_throwException() throws Exception {
.setLimitExceededBehavior(
FlowController.LimitExceededBehavior.ThrowException)
.setMaxOutstandingElementCount(1L)
.setMaxOutstandingRequestBytes(10L)
.setMaxOutstandingRequestBytes(55L)
.build())
.build())
.build();
Expand Down Expand Up @@ -1181,7 +1181,7 @@ public void testPublishFlowControl_throwExceptionWithOrderingKey() throws Except
.setLimitExceededBehavior(
FlowController.LimitExceededBehavior.ThrowException)
.setMaxOutstandingElementCount(1L)
.setMaxOutstandingRequestBytes(10L)
.setMaxOutstandingRequestBytes(55L)
.build())
.build())
.setEnableMessageOrdering(true)
Expand Down Expand Up @@ -1227,7 +1227,7 @@ public void testPublishFlowControl_block() throws Exception {
FlowControlSettings.newBuilder()
.setLimitExceededBehavior(FlowController.LimitExceededBehavior.Block)
.setMaxOutstandingElementCount(2L)
.setMaxOutstandingRequestBytes(10L)
.setMaxOutstandingRequestBytes(55L)
.build())
.build())
.build();
Expand Down

0 comments on commit 9fdbf3d

Please sign in to comment.