summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2008-11-19 23:01:08 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2008-11-19 23:01:08 +0000
commit9702770ad3edbf653d11a9cff360e6c5e3dbd0cc (patch)
tree28760f6ae725a9720b52c952f254dd07b563da89
parent1da73e2fcbc5863ee770fe157e32c1070dabc1eb (diff)
Re-adding rollback on to test case, fine tuning payment tests slightly. All tests still pass properly.
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2407 4979c152-3d1c-0410-bac9-87ea11338e46
-rw-r--r--sql/modules/test/Payment.sql6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/modules/test/Payment.sql b/sql/modules/test/Payment.sql
index 1cc83e23..b74269e3 100644
--- a/sql/modules/test/Payment.sql
+++ b/sql/modules/test/Payment.sql
@@ -85,9 +85,9 @@ VALUES ('Threshold met',
(SELECT test_convert_array(invoices) LIKE '%::test_show2::%'
FROM
(
-SELECT invoices FROM payment_get_all_contact_invoices(1, NULL, 'USD', NULL, NULL, currval('batch_id_seq')::int, '00001', 'TEST1')
+SELECT invoices FROM payment_get_all_contact_invoices(1, NULL, 'USD', NULL, NULL, NULL, '00001', 'TEST1')
)p));
-SELECT invoices FROM payment_get_all_contact_invoices(1, NULL, 'USD', NULL, NULL, currval('batch_id_seq')::int, '00001', 'TEST1');
+SELECT invoices FROM payment_get_all_contact_invoices(1, NULL, 'USD', NULL, NULL, NULL, '00002', 'TEST1');
INSERT INTO test_result(test_name, success)
VALUES ('Non-Batch Voucher Not In Payment Selection',
@@ -102,4 +102,4 @@ SELECT (select count(*) from test_result where success is true)
|| (select count(*) from test_result where success is not true)
|| ' failed' as message;
--- ROLLBACK;
+ ROLLBACK;