Bugzilla – Attachment 90882 Details for
Bug 23177
Rollback cleanup in Circulation.t
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23177: (QA follow-up) Remove subtest txn_begin and rollback
Bug-23177-QA-follow-up-Remove-subtest-txnbegin-and.patch (text/plain), 1.84 KB, created by
Marcel de Rooy
on 2019-06-21 09:18:38 UTC
(
hide
)
Description:
Bug 23177: (QA follow-up) Remove subtest txn_begin and rollback
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2019-06-21 09:18:38 UTC
Size:
1.84 KB
patch
obsolete
>From 449ab8e4df0cf2d242b538ba2d3c799eb35c730b Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Fri, 21 Jun 2019 09:15:18 +0000 >Subject: [PATCH] Bug 23177: (QA follow-up) Remove subtest txn_begin and > rollback >Content-Type: text/plain; charset=utf-8 > >This resolves: >DBIx::Class::Storage::txn_rollback(): A txn_rollback in nested transaction is ineffective! (depth 1) >Removing unneeded subtest txn's. We should probably add them everywhere or >just at global level. > >Test plan: >With all three patches applied, run Circulation.t a few times. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > t/db_dependent/Circulation.t | 4 ---- > 1 file changed, 4 deletions(-) > >diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t >index 173b7d66a9..6219ada92c 100755 >--- a/t/db_dependent/Circulation.t >+++ b/t/db_dependent/Circulation.t >@@ -3042,7 +3042,6 @@ subtest 'AddRenewal and AddIssuingCharge tests' => sub { > > plan tests => 13; > >- $schema->storage->txn_begin; > > t::lib::Mocks::mock_preference('item-level_itypes', 1); > >@@ -3129,14 +3128,12 @@ subtest 'AddRenewal and AddIssuingCharge tests' => sub { > is( $line->branchcode, $library->id, 'AddRenewal correctly sets branchcode' ); > is( $line->description, "Renewal of Rental Item $title $barcode", 'AddRenewal set a hardcoded description for the accountline' ); > >- $schema->storage->txn_rollback; > }; > > subtest 'ProcessOfflinePayment() tests' => sub { > > plan tests => 4; > >- $schema->storage->txn_begin; > > my $amount = 123; > >@@ -3153,7 +3150,6 @@ subtest 'ProcessOfflinePayment() tests' => sub { > is( $line->amount+0, $amount * -1, 'amount picked from params' ); > is( $line->branchcode, $library->id, 'branchcode set correctly' ); > >- $schema->storage->txn_rollback; > }; > > subtest 'Incremented fee tests' => sub { >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23177
:
90880
|
90881
|
90882
|
90899
|
90900
|
90901
|
90902
|
92175