refactored code for TestCompareNodeCli

No match.