Bug 22206: (QA follow-up) Fix tests for hold suspension api
[koha.git] / t / db_dependent / api / v1 / holds.t
index 700af99..31a1430 100644 (file)
@@ -338,7 +338,7 @@ subtest 'suspend and resume tests' => sub {
 
     my $patron = $builder->build_object(
         { class => 'Koha::Patrons', value => { userid => 'tomasito', flags => 1 } } );
-    $patron->set_password($password);
+    $patron->set_password({ password => $password, skip_validation => 1 });
     my $userid = $patron->userid;
 
     # Disable logging