yxrxy commented on code in PR #3059:
URL: https://github.com/apache/dubbo-go/pull/3059#discussion_r2448108846
##########
registry/nacos/registry_test.go:
##########
@@ -204,6 +204,18 @@ func (mr *MockINamingClientMockRecorder)
GetAllServicesInfo(param any) *gomock.C
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock,
"GetAllServicesInfo",
reflect.TypeOf((*MockINamingClient)(nil).GetAllServicesInfo), param)
}
+// ServerHealthy mocks base method
+func (m *MockINamingClient) ServerHealthy() bool {
+ ret := m.ctrl.Call(m, "ServerHealthy")
+ ret0, _ := ret[0].(bool)
+ return ret0
+}
+
+// ServerHealthy indicates an expected call of ServerHealthy
+func (mr *MockINamingClientMockRecorder) ServerHealthy() *gomock.Call {
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServerHealthy",
reflect.TypeOf((*MockINamingClient)(nil).ServerHealthy))
+}
Review Comment:
nacos sdk v2.2.5 引入了新方法,这些是为了修复ci报错:
registry/nacos/registry_test.go:298:15: cannot use mnc (variable of type
*MockINamingClient) as naming_client.INamingClient value in argument to
nc.SetClient: *MockINamingClient does not implement naming_client.INamingClient
(missing method ServerHealthy)
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]