We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8736893 commit 97230f4Copy full SHA for 97230f4
git_test.go
@@ -70,7 +70,7 @@ func createTestProjectRunGitAuditAndValidate(t *testing.T, projectPath string, g
70
_, cleanUpProject := securityTestUtils.CreateTestProjectFromZipAndChdir(t, projectPath)
71
defer cleanUpProject()
72
if gitAuditParams.CustomRepoCloneUrl != "" {
73
- // Override the git remote url to a dummy one to avoid network calls during tests.
+ // Override the git remote url to a dummy one to avoid flaky tests due to collisions in policy/watch created for the same repo.
74
assert.NoError(t, exec.Command("git", "remote", "set-url", "origin", gitAuditParams.CustomRepoCloneUrl).Run(), "Failed to set dummy git remote url")
75
}
76
// Run the audit command with git repo and verify violations are reported to the platform.
0 commit comments