From: Bill Erickson Date: Wed, 19 Feb 2014 15:22:37 +0000 (-0500) Subject: DB supersedes / deprecates pgtap test repair X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=164c37ad3df96849cb727148cade44043264302e;p=working%2FEvergreen.git DB supersedes / deprecates pgtap test repair Sort multi-value arrays before passing them off to pgtap for test comparison. Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/sql/Pg/t/db_patch_dep_checks.pg b/Open-ILS/src/sql/Pg/t/db_patch_dep_checks.pg index 57c5085cef..19ce243f42 100644 --- a/Open-ILS/src/sql/Pg/t/db_patch_dep_checks.pg +++ b/Open-ILS/src/sql/Pg/t/db_patch_dep_checks.pg @@ -29,7 +29,14 @@ SELECT is( -- AAAF deprecates AAAB, AAAC SELECT is( - (SELECT ARRAY_AGG(patch) FROM evergreen.upgrade_list_applied_deprecates('AAAF')), + ( SELECT ARRAY_AGG(patch) + FROM ( + -- sort the patches to match the expected output + SELECT patch + FROM evergreen.upgrade_list_applied_deprecates('AAAF') + ORDER BY patch + ) AS patch + ), '{AAAB,AAAC}' );