Part of our code is time sensitive and we need to able to reserve something and then release it in 30-60 seconds etc, which we can just do a time.Sleep(60 * time.Secon
From Google result I found relatively simple solution: Here
The basic idea is using another function call "nowFunc" to get the time.Now().
In your main, initialize this function to return time.Now(). In your test, initialize this function to return a fixed fake time.