Bugzilla – Attachment 95332 Details for
Bug 24022
Z3950Responder tests are failing randomly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24022: Prevent Session2.t to fail if run after Session.t
Bug-24022-Prevent-Session2t-to-fail-if-run-after-S.patch (text/plain), 1.35 KB, created by
Jonathan Druart
on 2019-11-12 16:17:47 UTC
(
hide
)
Description:
Bug 24022: Prevent Session2.t to fail if run after Session.t
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2019-11-12 16:17:47 UTC
Size:
1.35 KB
patch
obsolete
>From 9de99504ab48b507cecba8e6103cfa1dc87a2db4 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 12 Nov 2019 17:15:35 +0100 >Subject: [PATCH] Bug 24022: Prevent Session2.t to fail if run after Session.t > >Cache must be cleaned! >--- > t/db_dependent/Koha/Z3950Responder/Session2.t | 10 ++++++---- > 1 file changed, 6 insertions(+), 4 deletions(-) > >diff --git a/t/db_dependent/Koha/Z3950Responder/Session2.t b/t/db_dependent/Koha/Z3950Responder/Session2.t >index b6f790b4f8..ece9bded6f 100644 >--- a/t/db_dependent/Koha/Z3950Responder/Session2.t >+++ b/t/db_dependent/Koha/Z3950Responder/Session2.t >@@ -17,6 +17,9 @@ my $schema = Koha::Database->new->schema; > > $schema->storage->txn_begin; > >+# Clear the cache, before and after >+Koha::Caches->get_instance->flush_all; >+ > subtest 'add_item_status' => sub { > > plan tests => 2; >@@ -40,10 +43,6 @@ subtest 'add_item_status' => sub { > } > }); > >- # Clear the cache to make sure the above values take effect >- my $cache = Koha::Caches->get_instance(); >- $cache->flush_all(); >- > ## FIRST ITEM HAS ALL THE STATUSES ## > my $item_1 = $builder->build({ > source => 'Item', >@@ -89,4 +88,7 @@ subtest 'add_item_status' => sub { > > }; > >+# Clear the cache, before and after >+Koha::Caches->get_instance->flush_all; >+ > $schema->storage->txn_rollback; >-- >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 24022
:
95332
|
95333
|
95336
|
95362
|
95363
|
95364