Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-16612

RingTest has inconsistent assertion

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Triage Needed
    • Priority: Normal
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: Test/unit
    • Labels:
      None
    • Platform:
      All
    • Impacts:
      None

      Description

      There is an assertion for the node current load like:

      assertThat(hostRing, matchesPattern(".*\\d+\\.\\d+ KiB.*"));
      

      while we are formatting that value with #.##. Therefore if we say have 46 KiB, it will be formatted as 46 KiB rather than 46.00 KiB which is expected by the test. We need to either change this assertion or change the format string to #0.00

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jlewandowski Jacek Lewandowski
                Reporter:
                jlewandowski Jacek Lewandowski
                Authors:
                Jacek Lewandowski
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: