This is an automated email from the ASF dual-hosted git repository. albumenj pushed a commit to branch 3.0-multi-instances in repository https://gitbox.apache.org/repos/asf/dubbo.git
commit c5a41ab9b6af486c1d81555e38e71fcc855e108d Author: Albumen Kevin <[email protected]> AuthorDate: Sun Aug 29 18:07:49 2021 +0800 Fix UT in DNSServiceDiscoveryTest --- .../java/org/apache/dubbo/registry/dns/DNSServiceDiscoveryTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dubbo-registry/dubbo-registry-dns/src/test/java/org/apache/dubbo/registry/dns/DNSServiceDiscoveryTest.java b/dubbo-registry/dubbo-registry-dns/src/test/java/org/apache/dubbo/registry/dns/DNSServiceDiscoveryTest.java index f77ad95..becfca2 100644 --- a/dubbo-registry/dubbo-registry-dns/src/test/java/org/apache/dubbo/registry/dns/DNSServiceDiscoveryTest.java +++ b/dubbo-registry/dubbo-registry-dns/src/test/java/org/apache/dubbo/registry/dns/DNSServiceDiscoveryTest.java @@ -30,7 +30,6 @@ import org.apache.dubbo.metadata.MetadataService; import org.apache.dubbo.metadata.WritableMetadataService; import org.apache.dubbo.registry.Constants; import org.apache.dubbo.registry.client.DefaultServiceInstance; -import org.apache.dubbo.registry.client.ServiceDiscovery; import org.apache.dubbo.registry.client.ServiceInstance; import org.apache.dubbo.registry.client.event.ServiceInstancesChangedEvent; import org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener; @@ -73,7 +72,8 @@ public class DNSServiceDiscoveryTest { @Test public void testProvider() throws Exception { ApplicationModel applicationModel = ApplicationModel.defaultModel(); - ServiceDiscovery dnsServiceDiscovery = new DNSServiceDiscovery(); + DNSServiceDiscovery dnsServiceDiscovery = new DNSServiceDiscovery(); + dnsServiceDiscovery.setApplicationModel(applicationModel); URL registryURL = URL.valueOf("dns://"); dnsServiceDiscovery.initialize(registryURL);
