Fix unit test

pull/2609/head
Freeman Lau 3 years ago
parent 3b03e95c3e
commit f7d3c6a371

@ -23,6 +23,7 @@ import com.alibaba.cloud.nacos.refresh.SmartConfigurationPropertiesRebinder;
import com.alibaba.cloud.nacos.refresh.condition.ConditionalOnNonDefaultBehavior;
import org.springframework.beans.factory.BeanFactoryUtils;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.autoconfigure.condition.SearchStrategy;
import org.springframework.cloud.context.properties.ConfigurationPropertiesBeans;

@ -49,7 +49,7 @@ public class NacosConfigAutoConfigurationTest {
assertThat(BeanFactoryUtils.beanNamesForTypeIncludingAncestors(context,
NacosConfigProperties.class).length).isEqualTo(1);
assertThat(context.getBean(NacosConfigProperties.class).getServerAddr())
.isEqualTo("127.0.0.1:8848");
.isEqualTo("localhost:8848");
context.close();
}

Loading…
Cancel
Save