"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "core/src/test/org/apache/lucene/store/TestSleepingLockWrapper.java" between
lucene-7.6.0-src.tgz and lucene-7.7.0-src.tgz

About: Lucene is a Java full-text search engine (not a complete application, but rather a code library and API; java source code).

TestSleepingLockWrapper.java  (lucene-7.6.0-src.tgz):TestSleepingLockWrapper.java  (lucene-7.7.0-src.tgz)
skipping to change at line 22 skipping to change at line 22
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.apache.lucene.store; package org.apache.lucene.store;
import java.io.IOException; import java.io.IOException;
import java.nio.file.Path; import java.nio.file.Path;
import org.apache.lucene.store.BaseLockFactoryTestCase;
import org.apache.lucene.store.Directory;
import org.apache.lucene.store.SingleInstanceLockFactory;
import org.apache.lucene.store.SleepingLockWrapper;
import org.apache.lucene.util.TestUtil; import org.apache.lucene.util.TestUtil;
/** Simple tests for SleepingLockWrapper */ /** Simple tests for SleepingLockWrapper */
public class TestSleepingLockWrapper extends BaseLockFactoryTestCase { public class TestSleepingLockWrapper extends BaseLockFactoryTestCase {
@Override @Override
protected Directory getDirectory(Path path) throws IOException { protected Directory getDirectory(Path path) throws IOException {
long lockWaitTimeout = TestUtil.nextLong(random(), 20, 100); long lockWaitTimeout = TestUtil.nextLong(random(), 20, 100);
long pollInterval = TestUtil.nextLong(random(), 2, 10); long pollInterval = TestUtil.nextLong(random(), 2, 10);
 End of changes. 1 change blocks. 
4 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)