keon94 opened a new issue, #2626:
URL: https://github.com/apache/incubator-devlake/issues/2626

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   Getting this error when running tests under the plugins/helper package.
   
   `# github.com/apache/incubator-devlake/plugins/helper
   package github.com/apache/incubator-devlake/plugins/helper
        imports github.com/apache/incubator-devlake/mocks: import cycle not 
allowed in test
   FAIL github.com/apache/incubator-devlake/plugins/helper [setup failed]
   
   ?    github.com/apache/incubator-devlake/plugins/helper/common       [no 
test files]`
   
   ### What you expected to happen
   
   No error.
   
   ### How to reproduce
   
   On main branch, run tests under plugins/helper after generating mocks using 
`make mock`
   
   ### Anything else
   
   The offending file is mocks/QueueNode.go. This is a mock of QueueNode in 
queue.go in plugins/helper. We either need to refactor the interface types 
under helper/ into a new subdirectory (subpackage), or move all the tests in 
there to a new subdirectory (subpackage).
   
   ### Version
   
   main
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to