apache / dubbo-admin

The ops and reference implementation for Apache Dubbo
https://dubbo.apache.org
Apache License 2.0
4k stars 2.17k forks source link

Modify small bugs in unit tests #1077

Closed sjmshsh closed 1 year ago

sjmshsh commented 1 year ago

The relevant information of consumers and service providers in dubbo admin is saved in the form of map[string]common.URL. The underlying implementation principle of map determines that it may be out of order, which is different from the string array in tt.want The order is different, so when comparing, sometimes it can succeed, and sometimes it will fail. So sort and then compare.

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information