[Koha-bugs] [Bug 35507] TestBuilder.t is failing randomly
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Dec 12 14:45:04 CET 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35507
--- Comment #21 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
(In reply to Marcel de Rooy from comment #19)
> Created attachment 159739 [details] [review]
> Bug 35507: Add Plugins::Method->delete
>
> Delete record in plugin_data too and clear cache.
>
> Note: Adding the singular delete, makes the plural loop and
> call the singular in Koha::Objects. Clearing the cache is
> done in the store_data call of Koha::Plugins.
>
> Test plan:
> Run t/db_dependent/Koha/Plugins/Method.t
> Run other Koha plugin tests:
(In reply to Marcel de Rooy from comment #18)
> Weird stuff. Debugging Plugins.t gives me the following:
>
> Between those two lines:
>
> [1] my $classname = ref($plugin);
>
> AND
>
> [2] like( $plugin->test_template($fn), qr/^I am $fn/, 'Template works' );
>
> There must be an implicit commit somewhere. If you end on the classname
> line, you will have no committed data, after the test_template line you have.
>
> Note that test_template calls get_template_and_user (and checkauth etc) in
> C4/Auth. Somewhere we commit the changes in plugin_data and plugin_methods.
>
> This is costing me too much time now to continue. Sorry ;)
> Assistance appreciated..
CGI::Session
\o/
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list