HADOOP-14293. Initialize FakeTimer with a less trivial value.

(cherry picked from commit be144117a8)
(cherry picked from commit dab1deb9a0)
This commit is contained in:
Andrew Wang 2017-04-10 11:37:01 -07:00
parent e5d5d0ddb5
commit 60a3a63990
1 changed files with 2 additions and 1 deletions

View File

@ -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