Uploaded image for project: 'PicketLink'
  1. PicketLink
  2. PLINK-259

ShanesBigSanityCheckTestCase.testScenario1 is failing sometimes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • PLINK_2.5.3.Beta1
    • PLINK_2.5.0.Final
    • IDM
    • None

    Description

      In my environment, the unit test ShanesBigSanityCheckTestCase.testScenario1 is sometimes failing (It's passing successfully in around 75% of cases, but in 25% cases it's failing).

      In case that the failure occurs, it happens on line 159 in statement:

              assert !em.createQuery(
                      "select a from IdentityObjectAttribute a where a.identity.id = :id and a.attributeName = :attributeName",
                      IdentityObjectAttribute.class)
                  .setParameter("id", u.getId())
                  .setParameter("attributeName", "profilePhoto")
                  .getResultList().isEmpty();
      

      which is failing because resultList is sometimes empty.

      Still not sure about the cause of this. I wonder if it's just me or if it happens for someone else as well. I've reproduced with Ubuntu 12.10, Oracle JDK 1.6

      Attachments

        Activity

          People

            psilva@redhat.com Pedro Igor Craveiro
            mposolda@redhat.com Marek Posolda
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: