mirror of https://github.com/apache/lucene.git
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:
parent
8c9f2ce227
commit
ac32a540c3
|
@ -232,7 +232,9 @@ public class TestTimeLimitedCollector extends LuceneTestCase {
|
|||
} else {
|
||||
doTestSearch();
|
||||
}
|
||||
success.set(num);
|
||||
synchronized(success) {
|
||||
success.set(num);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue