Skip to content

Commit

Permalink
t
Browse files Browse the repository at this point in the history
  • Loading branch information
bagnaram committed Oct 13, 2023
1 parent 8ad63f7 commit 1795b61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reposerver/repository/repository_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2666,13 +2666,13 @@ func runGit(t *testing.T, workDir string, args ...string) string {
func Test_findHelmValueFilesInPath(t *testing.T) {
t.Run("does not exist", func(t *testing.T) {
var files string[]

Check failure on line 2668 in reposerver/repository/repository_test.go

View workflow job for this annotation

GitHub Actions / Run unit tests for Go packages

expected type argument list

Check failure on line 2668 in reposerver/repository/repository_test.go

View workflow job for this annotation

GitHub Actions / Run unit tests for Go packages

expected type argument list

Check failure on line 2668 in reposerver/repository/repository_test.go

View workflow job for this annotation

GitHub Actions / Run unit tests with -race for Go packages

expected type argument list

Check failure on line 2668 in reposerver/repository/repository_test.go

View workflow job for this annotation

GitHub Actions / Run unit tests with -race for Go packages

expected type argument list
err := filepath.Walk(appPath, findHelmValueFilesInPath("/obviously/does/not/exist"))
err := filepath.Walk("/obviously/does/not/exist", findHelmValueFilesInPath(files))
assert.Error(t, err)
assert.Empty(t, files)
})
t.Run("values files", func(t *testing.T) {
var files string[]
err := filepath.Walk(appPath, findHelmValueFilesInPath("./testdata/values-files"))
err := filepath.Walk("./testdata/values-files", findHelmValueFilesInPath(files))
assert.NoError(t, err)
assert.Len(t, files, 4)
})
Expand Down

0 comments on commit 1795b61

Please sign in to comment.