[Koha-patches] [PATCH] Fixing the VirtualShelves test

Chris Cormack chrisc at catalyst.net.nz
Sat Sep 4 09:59:25 CEST 2010


---
 t/db_dependent/VirtualShelves.t |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/t/db_dependent/VirtualShelves.t b/t/db_dependent/VirtualShelves.t
index f4110fa..00cb032 100755
--- a/t/db_dependent/VirtualShelves.t
+++ b/t/db_dependent/VirtualShelves.t
@@ -116,7 +116,7 @@ for(my $i=0; $i<10;$i++){
 
     
     # same thing with AddToShelfFromBiblio
-    my $biblionumber = $biblionumbers[int(rand(10))];
+    my $biblionumber = $biblionumbers[int(rand(9))];
     &AddToShelfFromBiblio($biblionumber, $shelfnumber);
     my ($AfterAgain,$countagain) = GetShelfContents($shelfnumber);
     ok($countafter, $countagain -1);
-- 
1.7.0.4



More information about the Koha-patches mailing list