mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 15:09:42 +00:00
tests: Fix TestRootPathFromCWD LICENSE check for web and vendor directories (#1695)
This fixes looking for LICENSE files in the vendor directory
This commit is contained in:
@@ -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" {
|
||||
|
||||
Reference in New Issue
Block a user