Skip to content

Conversation

@adoroszlai
Copy link
Contributor

What changes were proposed in this pull request?

#104 has unexpectedly broken the unit test RootServiceResponseFactoryTest:

[ERROR]   RootServiceResponseFactoryTest.testGetRootServiceComponents:137 expected:<1.0> but was:<3.0>

This change fixes the unit test by increasing the number of properties expected (due to the addition of a test property in c4c3663). It also breaks the big test methods into separate ones for improved readability. No other class is changed.

How was this patch tested?

Affected unit test now passes:

[INFO] Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 13.562 s - in org.apache.ambari.server.controller.RootServiceResponseFactoryTest

@adoroszlai adoroszlai self-assigned this Jan 15, 2018
@adoroszlai adoroszlai merged commit 15634ce into apache:branch-2.6 Jan 15, 2018
@adoroszlai adoroszlai deleted the AMBARI-22771_broken_unit_test-branch-2.6 branch January 15, 2018 13:42
@asfgit
Copy link

asfgit commented Jan 15, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/127/
Test PASSed.

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