Skip to content

Commit

Permalink
Remove retry count assertion from unit tests (aws#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
srprash authored Sep 1, 2021
1 parent 766a73e commit c14447e
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,6 @@ public void testThrottledException() throws Exception {
Assert.assertEquals("1111-2222-3333-4444", awsStats.get("request_id"));
Assert.assertEquals("extended", awsStats.get("id_2"));
Assert.assertEquals("us-west-42", awsStats.get("region"));
// throttled requests are retried
Assert.assertEquals(3, awsStats.get("retries"));
Assert.assertEquals(2L, httpResponseStats.get("content_length"));
Assert.assertEquals(429, httpResponseStats.get("status"));
Assert.assertEquals(true, subsegment.isError());
Expand Down Expand Up @@ -456,8 +454,6 @@ public void testAsyncThrottledException() {
Assert.assertEquals("1111-2222-3333-4444", awsStats.get("request_id"));
Assert.assertEquals("extended", awsStats.get("id_2"));
Assert.assertEquals("us-west-42", awsStats.get("region"));
// throttled requests are retried
Assert.assertEquals(3, awsStats.get("retries"));
Assert.assertEquals(2L, httpResponseStats.get("content_length"));
Assert.assertEquals(429, httpResponseStats.get("status"));
Assert.assertEquals(true, subsegment.isError());
Expand Down Expand Up @@ -508,8 +504,6 @@ public void test500Exception() throws Exception {
Assert.assertEquals("1111-2222-3333-4444", awsStats.get("request_id"));
Assert.assertEquals("extended", awsStats.get("id_2"));
Assert.assertEquals("us-west-42", awsStats.get("region"));
// 500 exceptions are retried
Assert.assertEquals(3, awsStats.get("retries"));
Assert.assertEquals(2L, httpResponseStats.get("content_length"));
Assert.assertEquals(500, httpResponseStats.get("status"));
Assert.assertEquals(false, subsegment.isError());
Expand Down Expand Up @@ -559,8 +553,6 @@ public void testAsync500Exception() {
Assert.assertEquals("1111-2222-3333-4444", awsStats.get("request_id"));
Assert.assertEquals("extended", awsStats.get("id_2"));
Assert.assertEquals("us-west-42", awsStats.get("region"));
// 500 exceptions are retried
Assert.assertEquals(3, awsStats.get("retries"));
Assert.assertEquals(2L, httpResponseStats.get("content_length"));
Assert.assertEquals(500, httpResponseStats.get("status"));
Assert.assertEquals(false, subsegment.isError());
Expand Down

0 comments on commit c14447e

Please sign in to comment.