Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-12028 BadApple and AwaitsFix annotations usage
  3. SOLR-12876

un-BadApple ShardParamsTest.testGetShardsTolerantAsBool

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 7.6, 8.0
    • None
    • None

    Description

      I reviewed the test itself and searched the mailing list archive for failures in the last 3 years via https://lists.apache.org/list.html?dev@lucene.apache.org:lte=3y:ShardParamsTest.testGetShardsTolerantAsBool (and found no examples there but did not look elsewhere) and based on that I think the test can be un-BadApple-d.

      A small change

      - assertTrue(exception.getMessage().startsWith("invalid boolean value: "));
      + assertTrue(exception.getMessage(), exception.getMessage().startsWith("invalid boolean value: "));
      

      might also be helpful. And ant beast ing of course too.

      Attachments

        Activity

          People

            cpoerschke Christine Poerschke
            cpoerschke Christine Poerschke
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: