pbacsko opened a new pull request, #843: URL: https://github.com/apache/yunikorn-core/pull/843
### What is this PR for? Enable deadlock detection when running unit tests with "make test". Original locking tests should be unaffected. ### What type of PR is it? * [ ] - Bug Fix * [x] - Improvement * [ ] - Feature * [ ] - Documentation * [ ] - Hot Fix * [ ] - Refactoring ### Todos * [ ] - Task ### What is the Jira issue? https://issues.apache.org/jira/browse/YUNIKORN-2553 ### How should this be tested? 1. Create a tiny test file eg. `pkg/scheduler/objects/mutex_test.go`: ``` package objects import ( "testing" "github.com/apache/yunikorn-core/pkg/locking" ) func TestDeadlock(t *testing.T) { var mutex locking.Mutex mutex.Lock() mutex.Lock() } ``` 2. Run `make test` ### Screenshots (if appropriate) ### Questions: * [ ] - The licenses files need update. * [ ] - There is breaking changes for older versions. * [ ] - It needs documentation. -- 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]
