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.
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.