You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Michael Semb Wever (Jira)" <ji...@apache.org> on 2022/02/17 08:20:00 UTC

[jira] [Updated] (CASSANDRA-16612) RingTest has inconsistent assertion

     [ https://issues.apache.org/jira/browse/CASSANDRA-16612?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Semb Wever updated CASSANDRA-16612:
-------------------------------------------
    Fix Version/s:     (was: 4.0.x)

> RingTest has inconsistent assertion
> -----------------------------------
>
>                 Key: CASSANDRA-16612
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16612
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Test/unit
>            Reporter: Jacek Lewandowski
>            Assignee: Ekaterina Dimitrova
>            Priority: Normal
>             Fix For: 4.0.1
>
>
> There is an assertion for the node current load like:
> {noformat}
> assertThat(hostRing, matchesPattern(".*\\d+\\.\\d+ KiB.*"));
> {noformat}
> 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}}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org