Skip to content

[SCB-315] Resolve the Registry-Service UT test fail#549

Merged
WillemJiang merged 2 commits intoapache:masterfrom
jeho0815:Branch_SCB315
Feb 8, 2018
Merged

[SCB-315] Resolve the Registry-Service UT test fail#549
WillemJiang merged 2 commits intoapache:masterfrom
jeho0815:Branch_SCB315

Conversation

@jeho0815
Copy link
Copy Markdown
Contributor

@jeho0815 jeho0815 commented Feb 3, 2018

Follow this checklist to help us incorporate your contribution quickly and easily:

  • Make sure there is a JIRA issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a JIRA issue. Your pull request should address just this issue, without pulling in other changes.
  • Each commit in the pull request should have a meaningful subject line and body.
  • Format the pull request title like [SCB-XXX] Fixes bug in ApproximateQuantiles, where you replace SCB-XXX with the appropriate JIRA issue.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Run mvn clean install to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

@coveralls
Copy link
Copy Markdown

coveralls commented Feb 3, 2018

Coverage Status

Coverage decreased (-0.01%) to 87.257% when pulling 8cf9e93 on jeho0815:Branch_SCB315 into bbe18e4 on apache:master.

private static List<String> getStringListProperty(Configuration configSource,
List<String> defaultValue, String... keys) {
if (configSource == null) {
if (configSource == null && DynamicPropertyFactory.getBackingConfigurationSource() != null) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are lot of duplicated code, we could extract a method for it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

private static List<String> getStringListProperty(Configuration configSource,
List<String> defaultValue, String... keys) {
if (configSource == null) {
if (configSource == null && DynamicPropertyFactory.getBackingConfigurationSource() != null) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这种情况属于UT问题,不是代码问题,改代码不合适。

@WillemJiang WillemJiang merged commit 05de3cf into apache:master Feb 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants