apache / apache/lucene

Tests should not rely upon wall clock time [LUCENE-4213]

Open
#5,285 0 comments 0 reactions 0 assignees View on GitHub
legacy-jira-priority:Major type:task
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

I commented out these checks in #5284: but we should really fix tests that do this.

It makes them hard/impossible to reproduce when they fail.

---
Migrated from [LUCENE-4213](https://issues.apache.org/jira/browse/LUCENE-4213) by Robert Muir (@rmuir)

Contributor guide

Open the contributing guide

Research direction

Start with the checks commented out in #5284 and trace the related Lucene tests that rely on wall-clock time. Identify each affected test and determine how its timing assumptions can be made reproducible. Done means the tests no longer depend on wall-clock timing and failures can be reproduced reliably.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.