diff --git a/src/test/util/time.h b/src/test/util/time.h index 8cd9a1dafcb..72dfd0e7a88 100644 --- a/src/test/util/time.h +++ b/src/test/util/time.h @@ -44,8 +44,8 @@ public: /// Initialize with the given time. explicit NodeClockContext(NodeSeconds init_time) { set(init_time); } explicit NodeClockContext(std::chrono::seconds init_time) { set(init_time); } - /// Initialize with current time, using the next tick to avoid going back by rounding to seconds. - explicit NodeClockContext() { set(++Now().time_since_epoch()); } + /// Initialize with current time. + explicit NodeClockContext() { set(Now()); } /// Unset mocktime. ~NodeClockContext() { set(0s); }