Bugzilla – Attachment 184132 Details for
Bug 40406
selenium/basic_workflow.t generates warnings
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40406: Remove warnings from selenium/basic_workflow.t
Bug-40406-Remove-warnings-from-seleniumbasicworkfl.patch (text/plain), 1.81 KB, created by
Jonathan Druart
on 2025-07-16 10:09:13 UTC
(
hide
)
Description:
Bug 40406: Remove warnings from selenium/basic_workflow.t
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-07-16 10:09:13 UTC
Size:
1.81 KB
patch
obsolete
>From c40e44cc4b96b317894479e4c9edd5cd0c89761d Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 16 Jul 2025 12:08:12 +0200 >Subject: [PATCH] Bug 40406: Remove warnings from selenium/basic_workflow.t > >t/db_dependent/selenium/basic_workflow.t .. 1/22 CP main = 1.93 >t/db_dependent/selenium/basic_workflow.t .. 3/22 CP add patron category = 3.56 >t/db_dependent/selenium/basic_workflow.t .. 5/22 CP add patron = 4.31 >CP add biblio = 0.29 >t/db_dependent/selenium/basic_workflow.t .. 11/22 CP add items = 9.81 >t/db_dependent/selenium/basic_workflow.t .. 16/22 CP checkout = 5.97 >t/db_dependent/selenium/basic_workflow.t .. 20/22 CP checkin = 4.04 >t/db_dependent/selenium/basic_workflow.t .. 22/22 CP holds = 5.60 >t/db_dependent/selenium/basic_workflow.t .. ok > >This has been used in the past for benchmarking Koha. > >I suggest to keep the warn but comment it. >--- > t/db_dependent/selenium/basic_workflow.t | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/selenium/basic_workflow.t b/t/db_dependent/selenium/basic_workflow.t >index b1134aeb54f..dc96e9125ba 100755 >--- a/t/db_dependent/selenium/basic_workflow.t >+++ b/t/db_dependent/selenium/basic_workflow.t >@@ -32,6 +32,9 @@ > > use Modern::Perl; > >+use Test::More tests => 23; >+use Test::NoWarnings; >+ > use Time::HiRes qw(gettimeofday); > use POSIX qw(strftime); > use C4::Context; >@@ -39,7 +42,6 @@ use C4::Biblio qw( AddBiblio ); > > use Koha::CirculationRules; > >-use Test::More tests => 22; > use MARC::Record; > use MARC::Field; > >@@ -326,6 +328,7 @@ sub cleanup { > sub time_diff { > my $lib = shift; > my $now = gettimeofday; >- warn "CP $lib = " . sprintf( "%.2f", $now - $prev_time ) . "\n"; >+ >+ #warn "CP $lib = " . sprintf( "%.2f", $now - $prev_time ) . "\n"; > $prev_time = $now; > } >-- >2.34.1
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 40406
:
184132
|
184298
|
184362