Skip to content

Commit dd18853

Browse files
Apply suggestions from code review
Co-authored-by: John Viegas <70235430+joviegas@users.noreply.github.com>
1 parent 0019ecc commit dd18853

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

services/sqs/src/test/java/software/amazon/awssdk/services/sqs/batchmanager/BatchingEfficiencyUnderLoadTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ void tearDown() {
8585
* Test runs heavy load and expects average batch sizes to be close to max.
8686
*/
8787
@Test
88-
void shouldEfficientlyBatchMessagesUnderHighLoad() throws Exception {
88+
void sendMessage_whenHighLoadScenario_shouldEfficientlyBatchMessages() throws Exception {
8989
int expectedBatchSize = 25; // more than double the actual max of 10
9090
int rateLimit = 1000 / SEND_FREQUENCY_MILLIS * expectedBatchSize;
9191
int messageCount = rateLimit * 2; // run it for 2 seconds
@@ -127,7 +127,7 @@ void shouldEfficientlyBatchMessagesUnderHighLoad() throws Exception {
127127
* Test runs a load that should cause an average batch size of 5.
128128
*/
129129
@Test
130-
void shouldMakeHalfBatches() throws Exception {
130+
void sendMessage_whenMediumLoadScenario_shouldCreateHalfSizeBatches() throws Exception {
131131
int expectedBatchSize = 5;
132132
int rateLimit = 1000 / SEND_FREQUENCY_MILLIS * expectedBatchSize;
133133
int messageCount = rateLimit * 2; // run it for 2 seconds
@@ -158,7 +158,7 @@ void shouldMakeHalfBatches() throws Exception {
158158
}
159159

160160
@Test
161-
void shouldMakeSmallBatches() throws Exception {
161+
void sendMessage_whenLowLoadScenario_shouldCreateSmallBatches() throws Exception {
162162
int expectedBatchSize = 1;
163163
int rateLimit = 1000 / SEND_FREQUENCY_MILLIS * expectedBatchSize;
164164
int messageCount = rateLimit * 2; // run it for 2 seconds

0 commit comments

Comments
 (0)