0yukali0 opened a new pull request, #450: URL: https://github.com/apache/yunikorn-core/pull/450
### What is this PR for? UT of NewResourceFromProto does not include the nil input res1 := NewResourceFromMap(nil) res2 := NewResourceFromProto(res1.ToProto()) res1.Resources is not equally to res2.Resources because the front one has address and the last one does not has address. So, I add the nil case to UT in this commit and NewResourceFromMap ### What type of PR is it? * [ ] - Bug Fix * [x] - Improvement * [ ] - Feature * [ ] - Documentation * [ ] - Hot Fix * [ ] - Refactoring * [x] UT ### Todos * [ ] - Task ### What is the Jira issue? * Open an issue on Jira https://issues.apache.org/jira/browse/YUNIKORN/ * Put link here, and add [YUNIKORN-*Jira number*] in PR title, eg. `[YUNIKORN-2] Gang scheduling interface parameters` ### How should this be tested? ### 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]
