public virtual void TestLazyLoadThreadSafety()
{
r = NewRandom();
dir1 = new RAMDirectory();
// test w/ field sizes bigger than the buffer of an index input
BuildDir(dir1, 15, 5, 2000);
// do many small tests so the thread locals go away inbetween
for (int i = 0; i < 100; i++)
{
ir1 = IndexReader.Open(dir1, false);
DoTest(10, 100);
}
}
}