Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-3698

LicenseTypeDAOTest.shouldPersistLicenseType fails when the buildsystem is too fast

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 12.5.8
    • Component/s: None
    • Labels:
      None

      Description

      the check:

      assertThat(licenseType.getLastModified()).isNotEqualTo(licenseType.getCreationDate());

      fails on some test builds as the execution time between creation and modification is sometimes too small to be of effect. The attached patch solves the problem for us.

        Attachments

          Activity

            People

            Assignee:
            srosse Stéphane Rossé
            Reporter:
            d.haag Daniel Haag
            Tester:
            Mandy Menzel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 20 minutes
                20m