From d7d7fc3441bad3b742fd56455ca1e46cba56eb18 Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Date: Mon, 6 May 2019 15:37:38 -0500
Subject: [PATCH] Bug 22860: Remove 1 remaining patron after authentication.t
 is ran

Test plan:
0/ Do not apply the patch
1/ select count(*) from borrowers;
2/ Run the tests
=> Notice that you have 1 more patron
3/ Apply the patch and repeat 1/ and 2/
=> Notice that you have the same number of patrons before and after the
tests
---
 t/db_dependent/selenium/authentication.t | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/t/db_dependent/selenium/authentication.t b/t/db_dependent/selenium/authentication.t
index b3738a561d..a992478785 100644
--- a/t/db_dependent/selenium/authentication.t
+++ b/t/db_dependent/selenium/authentication.t
@@ -67,6 +67,8 @@ SKIP: {
         $patron->flags(1)->store; # superlibrarian permission
         $s->auth( $patron->userid, $password );
         like( $driver->get_title, qr(Koha staff client), 'Patron with flags superlibrarian should be able to login' );
+
+        push @data_to_cleanup, $patron, $patron->category, $patron->library;
     };
 
     subtest 'OPAC interface authentication' => sub {
-- 
2.11.0