Skip to content

Commit

Permalink
Tests: Fix fail on vendored modules
Browse files Browse the repository at this point in the history
This fixes looking for LICENSE files in the vendor directory
  • Loading branch information
gbjk committed Oct 31, 2024
1 parent e1b24e2 commit 7465d30
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/testing/utils/path_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ func TestRootPathFromCWD(t *testing.T) {
w, _ := filepath.Split(p)
w = filepath.Clean(w)
if w == r {
switch d.Name() {
case "vendor", "web":
return filepath.SkipDir
}
return nil
}
if d.Type().IsRegular() && d.Name() == "LICENSE" {
Expand Down

0 comments on commit 7465d30

Please sign in to comment.