Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-11323

Fixing flaky test WritableServiceBasedNamingStoreTestCase.testPermissions

    Details

    • Steps to Reproduce:
      Hide

      The failure can be reproduced by running the following commands.

      git clone https://github.com/wildfly/wildfly.git
      cd wildfly/naming/
      mvn install -DskipTests -am
      mvn test -Dtest=WritableServiceBasedNamingStoreTestCase#testPermissions
      
      Show
      The failure can be reproduced by running the following commands. git clone https://github.com/wildfly/wildfly.git cd wildfly/naming/ mvn install -DskipTests -am mvn test -Dtest=WritableServiceBasedNamingStoreTestCase#testPermissions

      Description

      testPermissions fails when run by itself even when there’s no bug in the code.

      This test can be fixed by looking up the name before testActionWithPermission is called, as shown in the following pull request.
      https://github.com/wildfly/wildfly/pull/11833
      Let me know if you want to discuss more.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                ordtesters ORD Testers
                Reporter:
                ordtesters ORD Testers
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: