mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 17:55:36 +01:00
This commit replaces the clock used in the unit test `TestMailBoxAddExpiry`. Previously the `TestClock` is used, resulting in the unit test being not so "unit" as the maintainer needs to know the detailed implementation of `clock.Clock`, resulting in debugging a failed unit test more difficult as the cognitive cost is high. Re-implement `clock.Clock` also means we need to maintain more. This is now solved by using mock clock so we can ignore the implementation details and care only the returned results. |
||
---|---|---|
.. | ||
release-notes-0.13.1.md | ||
release-notes-0.13.2.md | ||
release-notes-0.13.3.md | ||
release-notes-0.14.0.md | ||
release-notes-0.14.1.md | ||
release-notes-0.14.2.md | ||
release-notes-0.14.3.md | ||
release-notes-0.15.0.md | ||
release-notes-0.15.1.md | ||
release-notes-0.15.2.md | ||
release-notes-0.15.3.md | ||
release-notes-0.15.4.md | ||
release-notes-0.15.5.md | ||
release-notes-0.16.0.md |