OrderServiceTest failure

Description

This test "OrderServiceTest saveOrder_shouldThrowAmbiguousOrderExceptionIfDisconnectingMultipleActiveOrdersForTheGivenConcepts" is failing on all branches where it exists.

That is 1.10.x, 1.11.x, 1.12.x, 2.0.x, 2.1.x, and master.
It has always run successfully until all of the sudden, it started failing. I first detected it on our Sonar CI https://ci.openmrs.org/browse/SON-OPENMRSCOREMASTER/latest

All other platform CI builds were green. So i decided to manually run them and they all failed. I even tried them out locally and they still failed.
Am trying to investigate, but just wanted to mention it here just in case some one has an answer that will save my time, for it seems obvious.

Activity

Show:

Mike Seaton August 18, 2017 at 5:27 PM

As noted in the comments, any fix for this test needs to be backported all the way back to 1.10.x

Mike Seaton August 18, 2017 at 5:25 PM

From :

It's a data problem, not a bug. One of the orders in the XML test file has date_stopped="2017-08-15 00:00:00.0".
As getActiveOrders uses the system date if the parameter asOfDate is NULL, the test worked fine until four days ago.

Fixed

Details

Assignee

Reporter

Complexity

Low

Priority

Created August 18, 2017 at 5:24 PM
Updated August 19, 2017 at 2:58 PM
Resolved August 19, 2017 at 2:58 PM