Skip to content

Commit

Permalink
Fix integration test TestDocCompletion (#1180)
Browse files Browse the repository at this point in the history
PR #1177 introduced a new .md file in docs/diagrams. However, this file
is a guide to how to use the diagram tooling rather than adsys
documentation, so we need to ignore that directory as well in the test
checks.
  • Loading branch information
denisonbarbosa authored Jan 23, 2025
2 parents ed513a6 + bddc0a9 commit 54a495c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/adsysd/integration_tests/adsysctl_doc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ func TestDocCompletion(t *testing.T) {
if d.IsDir() ||
strings.HasPrefix(path, filepath.Join(docsDir, "reuse")) ||
strings.HasPrefix(path, docsDir+"/.") ||
strings.HasPrefix(path, filepath.Join(docsDir, "reference", "policies")) {
strings.HasPrefix(path, filepath.Join(docsDir, "reference", "policies")) ||
strings.HasPrefix(path, filepath.Join(docsDir, "diagrams")) {
return nil
}
if !strings.HasSuffix(d.Name(), ".md") {
Expand Down

0 comments on commit 54a495c

Please sign in to comment.