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

RingTest has inconsistent assertion

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 4.0.1
    • Test/unit
    • 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

              e.dimitrova Ekaterina Dimitrova
              jlewandowski Jacek Lewandowski
              Ekaterina Dimitrova
              Andres de la Peña
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: