From c14447e907617cd0330dbd3b7c747bc1d6c1614a Mon Sep 17 00:00:00 2001 From: Prashant Srivastava <50466688+srprash@users.noreply.github.com> Date: Wed, 1 Sep 2021 09:05:29 -0700 Subject: [PATCH] Remove retry count assertion from unit tests (#299) --- .../xray/interceptors/TracingInterceptorTest.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/aws-xray-recorder-sdk-aws-sdk-v2/src/test/java/com/amazonaws/xray/interceptors/TracingInterceptorTest.java b/aws-xray-recorder-sdk-aws-sdk-v2/src/test/java/com/amazonaws/xray/interceptors/TracingInterceptorTest.java index 0a147dd7..d26a634a 100644 --- a/aws-xray-recorder-sdk-aws-sdk-v2/src/test/java/com/amazonaws/xray/interceptors/TracingInterceptorTest.java +++ b/aws-xray-recorder-sdk-aws-sdk-v2/src/test/java/com/amazonaws/xray/interceptors/TracingInterceptorTest.java @@ -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()); @@ -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()); @@ -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()); @@ -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());