Uploaded image for project: 'JBoss Developer Materials'
  1. JBoss Developer Materials
  2. JDF-761

BookingServiceTest.testGetBookings() fails 50% of time and is ignored

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • ticket-monster
    • None
    • Hide
      // This usually works, and all tests pass
      > $JBOSS_HOME\bin\standalone.bat
      > mvn clean test -Parq-jbossas-remote
      > $JBOSS_HOME\bin\jboss-cli.bat --connect command=:shutdown --controller=localhost:9999
      // This has always failed for me
      > mvn clean test -Parq-jbossas-managed
      
      Show
      // This usually works, and all tests pass > $JBOSS_HOME\bin\standalone.bat > mvn clean test -Parq-jbossas-remote > $JBOSS_HOME\bin\jboss-cli.bat --connect command=:shutdown --controller=localhost:9999 // This has always failed for me > mvn clean test -Parq-jbossas-managed

      I've followed the ticket monster tutorial and copied code from it as well as from the demo/ directory in the ticket-monster repo. Apparently, test data in import.sql have been altered and
      JUnit test org.jboss.jdf.ticketmonster.test.rest.BookingServiceTest.testGetBookings() is annotated @Ignored. When I tried to remove the @Ignored annotation, everything seems OK at first, but as soon as I tried to run tests in managed mode, it has failed. The test case looks valid and the reason it fails should be fixed.

            vineet.reynolds_jira Vineet Reynolds (Inactive)
            mkalkov_jira Mikhail Kalkov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: