# | Line 170 | Line 170 | public class ReentrantReadWriteLockTest | |
---|---|---|
170 | case awaitNanos: | |
171 | long timeoutNanos = MILLISECONDS.toNanos(timeoutMillis); | |
172 | long nanosRemaining = c.awaitNanos(timeoutNanos); | |
173 | < | assertTrue(nanosRemaining > 0); |
173 | > | assertTrue(nanosRemaining > timeoutNanos / 2); |
174 | assertTrue(nanosRemaining <= timeoutNanos); | |
175 | break; | |
176 | case awaitUntil: |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |