Skip to content

Commit 859f73e

Browse files
authored
Fixed detection of not-run VCR tests to exclude non-vcr tests (GoogleCloudPlatform#11863)
1 parent 64712d4 commit 859f73e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.ci/magician/cmd/test_terraform_vcr.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ func execTestTerraformVCR(prNumber, mmCommitSha, buildID, projectID, buildStep,
350350
return nil
351351
}
352352

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

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

0 commit comments

Comments
 (0)