[ 
https://issues.apache.org/jira/browse/NIFI-9495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17461125#comment-17461125
 ] 

ASF subversion and git services commented on NIFI-9495:
-------------------------------------------------------

Commit 784ee680d54bc2f9cda182762db1349a312e0c4e in nifi's branch 
refs/heads/main from David Handermann
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=784ee68 ]

NIFI-9495 Corrected BulletinMergerTest using static timestamps

- Replaced JUnit 4 and TestNG references with JUnit 5
- Added test method for bulletin sorting

Signed-off-by: Matthew Burgess <mattyb...@apache.org>

This closes #5607


> Correct Intermittent BulletinMergerTest Failures
> ------------------------------------------------
>
>                 Key: NIFI-9495
>                 URL: https://issues.apache.org/jira/browse/NIFI-9495
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.15.1
>            Reporter: David Handermann
>            Assignee: David Handermann
>            Priority: Trivial
>             Fix For: 1.16.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> 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.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to