Bug 6536: QA Follow-up for fixing a unit test under Perl 5.18
authorTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 27 Aug 2014 16:24:18 +0000 (13:24 -0300)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 1 Sep 2014 13:09:21 +0000 (10:09 -0300)
commitdb1929094fd06e835fb6a1f46cda7ce018a1f852
treed543c9f3eaae122f05670569ee3c0a1c51bf060d
parent168871403c3bc8df91d6be65caba4bdd49745085
Bug 6536: QA Follow-up for fixing a unit test under Perl 5.18

The last test on the first series, fails randomly on Perl 5.18:
    not ok 12 - Third query makes no difference
    #   Failed test 'Third query makes no difference'
    #   at t/db_dependent/Breeding.t line 104.
    #          got: ''
    #     expected: '1'
    # Looks like you failed 1 test of 12.
not ok 1 - _build_query

This change makes tests pass. Please consider if this needs to be fixed
(i.e. sort order matters) or the test needs to be rewritten.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
I agree with adding the sort. (The need for doing this in Perl 5.18 is another
topic.)

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/Breeding.pm