Fix flaky test by adding dependency path
What does this MR do?
Fix flaky test for convert.Graph.PathTo by fixing the dependency paths through duplicate nodes.
The flaky test was caused by !131 (merged).
See gitlab-org/gitlab#337278 (comment 639330214) for details.
This is not a user-facing change and there's no changelog update for this.
What are the relevant issue numbers?
This fixes gitlab-org/gitlab#337278 (closed)
Does this MR meet the acceptance criteria?
Changelog entry added-
Documentation created/updated for GitLab EE, if necessary -
Documentation created/updated for this project, if necessary -
Documentation reviewed by technical writer or follow-up review issue created -
Tests added for this feature/bug -
Job definition updated, if necessary -
Conforms to the code review guidelines -
Conforms to the Go guidelines -
Security reports checked/validated by reviewer