Skip to content

Commit

Permalink
chore(ci): fix test_terraform_vcr test analytics template (#11034)
Browse files Browse the repository at this point in the history
  • Loading branch information
iyabchen authored Jun 25, 2024
1 parent b67395c commit 05168ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .ci/magician/cmd/test_terraform_vcr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion .ci/magician/cmd/test_terraform_vcr_test_analytics.tmpl
Original file line number Diff line number Diff line change
@@ -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}}
Expand Down

0 comments on commit 05168ff

Please sign in to comment.