From 05168ff944d3b06a68a1e6a862c97b235338bbbb Mon Sep 17 00:00:00 2001 From: Iris Chen <10179943+iyabchen@users.noreply.github.com> Date: Tue, 25 Jun 2024 09:02:57 -0700 Subject: [PATCH] chore(ci): fix test_terraform_vcr test analytics template (#11034) --- .ci/magician/cmd/test_terraform_vcr_test.go | 6 +++--- .ci/magician/cmd/test_terraform_vcr_test_analytics.tmpl | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.ci/magician/cmd/test_terraform_vcr_test.go b/.ci/magician/cmd/test_terraform_vcr_test.go index 773c28c7e2ef..604ec2feb06c 100644 --- a/.ci/magician/cmd/test_terraform_vcr_test.go +++ b/.ci/magician/cmd/test_terraform_vcr_test.go @@ -237,7 +237,7 @@ func TestAnalyticsComment(t *testing.T) { want: strings.Join( []string{ "#### Tests analytics", - "Total tests: 7", + "Total tests: 6", "Passed tests: 3", "Skipped tests: 2", "Affected tests: 1", @@ -268,7 +268,7 @@ func TestAnalyticsComment(t *testing.T) { want: strings.Join( []string{ "#### Tests analytics", - "Total tests: 7", + "Total tests: 6", "Passed tests: 3", "Skipped tests: 2", "Affected tests: 1", @@ -302,7 +302,7 @@ func TestAnalyticsComment(t *testing.T) { }, want: strings.Join([]string{ "#### Tests analytics", - "Total tests: 7", + "Total tests: 6", "Passed tests: 3", "Skipped tests: 2", "Affected tests: 1", diff --git a/.ci/magician/cmd/test_terraform_vcr_test_analytics.tmpl b/.ci/magician/cmd/test_terraform_vcr_test_analytics.tmpl index 391c07d05213..9c4006541946 100644 --- a/.ci/magician/cmd/test_terraform_vcr_test_analytics.tmpl +++ b/.ci/magician/cmd/test_terraform_vcr_test_analytics.tmpl @@ -1,5 +1,5 @@ #### Tests analytics -Total tests: {{add (add (len .ReplayingResult.PassedTests) (len .ReplayingResult.PassedTests)) (len .ReplayingResult.FailedTests) }} +Total tests: {{add (add (len .ReplayingResult.PassedTests) (len .ReplayingResult.SkippedTests)) (len .ReplayingResult.FailedTests) }} Passed tests: {{len .ReplayingResult.PassedTests}} Skipped tests: {{len .ReplayingResult.SkippedTests}} Affected tests: {{len .ReplayingResult.FailedTests}}