]> git.koha-community.org Git - koha.git/commit
Bug 29565: Prevent regressions.t to fail on slow boxes
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 24 Nov 2021 08:26:38 +0000 (09:26 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 24 Nov 2021 08:38:13 +0000 (09:38 +0100)
commit53956232f94a8d1b987b14ef0342b113217c86b8
treee453a2f45aca9cd3fd029c69da42529d73f1a408
parent65edbe5af21b9bba154cf5d5120d83da43eee0c8
Bug 29565: Prevent regressions.t to fail on slow boxes

It's failing randomly on some Jenkins' nodes

 #   Failed test 'Encoding in session variables'
 #   at t/db_dependent/selenium/regressions.t line 300.
 Can't call method "get_text" on an undefined value at t/db_dependent/selenium/regressions.t line 285.

It can be recreated locally with the following changes:
@ t/lib/Selenium.pm:50 @ sub new {
     );
     bless $self, $class;
     $self->add_error_handler;
-    $self->driver->set_implicit_wait_timeout(5000);
+    $self->driver->set_implicit_wait_timeout(1000);
     return $self;
 }

@ t/lib/Selenium.pm:50 @ sub new {
     );
     bless $self, $class;
     $self->add_error_handler;
-    $self->driver->set_implicit_wait_timeout(5000);
+    $self->driver->set_implicit_wait_timeout(1000);
     return $self;
 }

This patch suggests to simply double the timeout.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/lib/Selenium.pm