Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12209

StringHelperTest.testHumanReadableBytes() is not repeatable

    XMLWordPrintableJSON

    Details

    • Type: Test
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.21.0
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      This test expects a byte number (e.g. 1024) to be formatted into a string (e.g. 1.0 KB).

      The implementation is dependent upon the default locale, so this test fails, for instance on a french machine:

      [ERROR]   Run 1: StringHelperTest.testHumanReadableBytes:262 expected:<1[.]0 KB> but was:<1[,]0 KB>
      [ERROR]   Run 2: StringHelperTest.testHumanReadableBytes:262 expected:<1[.]0 KB> but was:<1[,]0 KB>
      [ERROR]   Run 3: StringHelperTest.testHumanReadableBytes:262 expected:<1[.]0 KB> but was:<1[,]0 KB>

       

      I will setup a PR to discuss this.

        Attachments

          Activity

            People

            • Assignee:
              aldettinger Alex Dettinger
              Reporter:
              aldettinger Alex Dettinger
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: