Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-6214

Flaky Tests in HelpSupportTestCase due to SynopsisGenerator.java and Flaky Test in BootScriptInvokerTestCase.java

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 20.0.0.Beta6, 20.0.0.Final
    • 4.0.0.Alpha8
    • CLI
    • None

      The test HelpSupportTestCase#testStandalone is flaky because it calls SynopsisGenerator which uses a HashSet as its data structure for the conflicts object. When comparing the conflicts object with the expected test results with assertEquals the test is flaky as HashSet does not maintain order. Fix: changed the conflicts and conflicts2 objects from HashSet to LinkedHashSet in method SynopsisGenerator#addSynopsisOption(SynopsisOption).

       

      The test BootScriptInvokerTestCase is flaky becauses it uses a HashSet as its data structure for the echos object. When comparing the echos object with the expected test results with assertEquals the test is flaky as HashSet does not maintain order. Fix: changed the echos object from HashSet to LinkedHashSet in method.

              rishabhprabhu5 Rishabh Prabhu (Inactive)
              rishabhprabhu5 Rishabh Prabhu (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: