Unit tests: Simulating a change in the system clock

49 views
Skip to first unread message

Carl

unread,
Jul 30, 2021, 12:19:07 AM7/30/21
to golang-nuts
Hi,

I have a bug that is only triggered when the underlying system clock has changed.
Is there a way to write a unit test to simulate this?

Cheers,
Carl
Reply all
Reply to author
Forward
0 new messages