HADOOP-14293. Initialize FakeTimer with a less trivial value.
(cherry picked from commitbe144117a8
) (cherry picked from commitdab1deb9a0
)
This commit is contained in:
parent
e5d5d0ddb5
commit
60a3a63990
|
@ -33,7 +33,8 @@ public class FakeTimer extends Timer {
|
||||||
|
|
||||||
/** Constructs a FakeTimer with a non-zero value */
|
/** Constructs a FakeTimer with a non-zero value */
|
||||||
public FakeTimer() {
|
public FakeTimer() {
|
||||||
nowNanos = 1000; // Initialize with a non-trivial value.
|
// Initialize with a non-trivial value.
|
||||||
|
nowNanos = TimeUnit.MILLISECONDS.toNanos(1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue