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

Fixing flaky test WritableServiceBasedNamingStoreTestCase.testPermissions

XMLWordPrintable

    • 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

      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.

              ordtesters ORD Testers (Inactive)
              ordtesters ORD Testers (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: