Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-1332

In TestAMRMClient, replace assertTrue with assertEquals where possible

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.3.0
    • Component/s: None
    • Labels:
    • Hadoop Flags:
      Reviewed

      Description

      TestAMRMClient uses a lot of "assertTrue(amClient.ask.size() == 0)" where "assertEquals(0, amClient.ask.size())" would make it easier to see why it's failing at a glance.

        Attachments

        1. YARN-1332-3.patch
          17 kB
          Sebastian Wong

          Activity

            People

            • Assignee:
              swong15 Sebastian Wong
              Reporter:
              sandyr Sandy Ryza
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: