Fixing the VirtualShelves test
authorChris Cormack <chrisc@catalyst.net.nz>
Sat, 4 Sep 2010 07:59:25 +0000 (19:59 +1200)
committerGalen Charlton <gmcharlt@gmail.com>
Wed, 6 Oct 2010 11:58:34 +0000 (07:58 -0400)
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
t/db_dependent/VirtualShelves.t

index f4110fa..00cb032 100755 (executable)
@@ -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);