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