Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-9495

Correct Intermittent BulletinMergerTest Failures

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.15.1
    • 1.16.0, 1.15.2
    • Core Framework
    • None

    Description

      Recent changes to the BulletinMergerTest introduced the potential for intermittent test failures when checking for the presence of a BulletinEntity instance containing the same message as an earlier instance.  The createBulletin method calls new Date() to set the timestamp property on test Bulletin objects, which yield different results based on execution speed. This can result in test failures when the BulletinMerger compares instances with the same message and equivalent timestamp values.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            exceptionfactory David Handermann
            exceptionfactory David Handermann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h

                Slack

                  Issue deployment