LUCENE-997: add missing synchronization in unit test

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@627700 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2008-02-14 10:36:31 +00:00
parent 8c9f2ce227
commit ac32a540c3
1 changed files with 3 additions and 1 deletions

View File

@ -232,7 +232,9 @@ public class TestTimeLimitedCollector extends LuceneTestCase {
} else {
doTestSearch();
}
success.set(num);
synchronized(success) {
success.set(num);
}
}
};
}