Skip to content

Commit

Permalink
add templates path to generate argo cd diff comments test
Browse files Browse the repository at this point in the history
  • Loading branch information
jared-logan-patrick-ct committed Oct 8, 2024
1 parent 223311d commit 09094d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/pkg/githubapi/github_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ func TestGenerateArgoCdDiffComments(t *testing.T) {
},
}

if err := os.Setenv("TEMPLATES_PATH", "../../../templates/"); err != nil {

Check failure on line 189 in internal/pkg/githubapi/github_test.go

View workflow job for this annotation

GitHub Actions / golangci-lint

os.Setenv() can be replaced by `t.Setenv()` in TestGenerateArgoCdDiffComments (tenv)
t.Fatal(err)
}

for name, tc := range tests {
tc := tc // capture range variable
name := name
Expand Down

0 comments on commit 09094d4

Please sign in to comment.