From d430420ed85f725b52ce597ffcd829507ded0f79 Mon Sep 17 00:00:00 2001 From: Zhihong Lin Date: Mon, 11 Nov 2024 16:33:04 -0500 Subject: [PATCH] Fix flaky unit test for awsentity translator logics --- translator/translate/otel/processor/awsentity/translator_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/translator/translate/otel/processor/awsentity/translator_test.go b/translator/translate/otel/processor/awsentity/translator_test.go index 11b44e37f4..fb75ca8e1c 100644 --- a/translator/translate/otel/processor/awsentity/translator_test.go +++ b/translator/translate/otel/processor/awsentity/translator_test.go @@ -52,6 +52,7 @@ func TestTranslate(t *testing.T) { t.Setenv(config.RUN_IN_CONTAINER, config.RUN_IN_CONTAINER_TRUE) ecsutil.GetECSUtilSingleton().Region = "test" } else { + ecsutil.GetECSUtilSingleton().Region = "" context.CurrentContext().SetMode(testCase.mode) context.CurrentContext().SetKubernetesMode(testCase.kubernetesMode) }