Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-4020

Tests may not be repeatable across different platforms/ JVMs due to different locale/ timezone being picked.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0-ALPHA
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      This is because the source array can be/ is different for each system/ JVM. So this pick is not repeatable for example:

        /** 
         * Return a random Locale from the available locales on the system.
         */
        public static Locale randomLocale(Random random) {
          Locale locales[] = Locale.getAvailableLocales();
          return locales[random.nextInt(locales.length)];
        }
      

      I don't think there is much we can do to make it repeatable (other than maybe enforcing locale using system property).

        Attachments

        1. LUCENE-4020.diff
          1 kB
          Dawid Weiss
        2. LUCENE-4020.patch
          8 kB
          Dawid Weiss

          Activity

            People

            • Assignee:
              dweiss Dawid Weiss
              Reporter:
              dweiss Dawid Weiss
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: