From 72f8a7eab15cdfa333fd9b53fb3d44124b47a60b Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Wed, 1 Jun 2011 20:44:32 -0700 Subject: [PATCH] fixed random dbbenchmark test breaking --- NzbDrone.Core.Test/dbBenchmark.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NzbDrone.Core.Test/dbBenchmark.cs b/NzbDrone.Core.Test/dbBenchmark.cs index 4510f78de..6d93d3ea3 100644 --- a/NzbDrone.Core.Test/dbBenchmark.cs +++ b/NzbDrone.Core.Test/dbBenchmark.cs @@ -107,7 +107,7 @@ namespace NzbDrone.Core.Test for (int i = 5000; i < 5000 + 1000; i++) { count++; - var file = repo.Single(random.Next(0, COUNT)).EpisodeFile; + var file = repo.Single(random.Next(10, COUNT - 100)).EpisodeFile; }