From ad7ff09b995e5275f2c6d664b31351321b1674af Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Date: Thu, 15 Jun 2017 15:46:17 -0300
Subject: [PATCH] Bug 18539: remove occurrence in ReNewSubscription.t

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
---
 t/db_dependent/Serials/ReNewSubscription.t | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/t/db_dependent/Serials/ReNewSubscription.t b/t/db_dependent/Serials/ReNewSubscription.t
index 43cc4e816c..a214a97aa0 100644
--- a/t/db_dependent/Serials/ReNewSubscription.t
+++ b/t/db_dependent/Serials/ReNewSubscription.t
@@ -85,9 +85,9 @@ my $subscriptionhistory = $builder->build({
 
 # Renew the subscription and check that enddate has not been set
 ReNewSubscription($subscription->{subscriptionid},'',"2016-01-01",'','',12,'');
-my @history = Koha::Subscription::Histories->find($subscription->{subscriptionid});
+my $history = Koha::Subscription::Histories->find($subscription->{subscriptionid});
 
-is ( $history[0]->histenddate(), undef, 'subscription history not empty after renewal');
+is ( $history->histenddate(), undef, 'subscription history not empty after renewal');
 
 # End of tests
 
-- 
2.11.0