fix(接口测试): 修复场景的Dubbo配置有默认值
This commit is contained in:
parent
67503e6d37
commit
be21158f60
|
@ -194,6 +194,18 @@ class DubboConfig extends BaseConfig {
|
|||
super();
|
||||
this.configCenter = new ConfigCenter(options.configCenter)
|
||||
this.registryCenter = new RegistryCenter(options.registryCenter)
|
||||
if (options.consumerAndService === undefined) {
|
||||
options.consumerAndService = {
|
||||
timeout: undefined,
|
||||
version: undefined,
|
||||
retries: undefined,
|
||||
cluster: undefined,
|
||||
group: undefined,
|
||||
connections: undefined,
|
||||
async: undefined,
|
||||
loadBalance: undefined
|
||||
}
|
||||
}
|
||||
this.consumerAndService = new ConsumerAndService(options.consumerAndService)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue