From 843ac3ec1cddb5149f76ebae67afee04b429f5b6 Mon Sep 17 00:00:00 2001 From: zjhe Date: Fri, 16 Jun 2023 22:35:58 +0800 Subject: [PATCH] fix incorrect e2e test code so it could pass on our local machine --- test/e2e/terraform_aks_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/e2e/terraform_aks_test.go b/test/e2e/terraform_aks_test.go index 93d355a0..c5a7044e 100644 --- a/test/e2e/terraform_aks_test.go +++ b/test/e2e/terraform_aks_test.go @@ -38,7 +38,7 @@ func assertOutputNotEmpty(t *testing.T, output test_helper.TerraformOutput, name } func TestExamplesWithoutMonitor(t *testing.T) { - var vars map[string]interface{} + vars := make(map[string]interface{}, 0) managedIdentityId := os.Getenv("MSI_ID") if managedIdentityId != "" { vars = map[string]interface{}{ @@ -63,7 +63,7 @@ func TestExamplesWithoutMonitor(t *testing.T) { } func TestExamplesNamedCluster(t *testing.T) { - var vars map[string]interface{} + vars := make(map[string]interface{}) managedIdentityId := os.Getenv("MSI_ID") if managedIdentityId != "" { vars = map[string]interface{}{ @@ -105,7 +105,7 @@ func TestExamplesWithoutAssertion(t *testing.T) { } func TestExamples_differentLocationForLogAnalyticsSolution(t *testing.T) { - var vars map[string]any + vars := make(map[string]any, 0) managedIdentityId := os.Getenv("MSI_ID") if managedIdentityId != "" { vars = map[string]any{