Skip to content

Commit

Permalink
Fixed detection of not-run VCR tests to exclude non-vcr tests (Google…
Browse files Browse the repository at this point in the history
  • Loading branch information
melinath authored and trodge committed Oct 10, 2024
1 parent ee838d7 commit 664e57d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .ci/magician/cmd/test_terraform_vcr.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ func execTestTerraformVCR(prNumber, mmCommitSha, buildID, projectID, buildStep,
return nil
}

var addedTestsRegexp = regexp.MustCompile(`(?m)^\+func (Test\w+)\(t \*testing.T\) {`)
var addedTestsRegexp = regexp.MustCompile(`(?m)^\+func (TestAcc\w+)\(t \*testing.T\) {`)

func notRunTests(gaDiff, betaDiff string, result vcr.Result) ([]string, []string) {
fmt.Println("Checking for new acceptance tests that were not run")
Expand Down

0 comments on commit 664e57d

Please sign in to comment.