mirror of
https://github.com/caddyserver/caddy.git
synced 2025-06-18 04:07:07 +08:00
Git: mock time functions in tests.
This commit is contained in:
@ -68,7 +68,7 @@ func (r *Repo) Pull() error {
|
||||
defer r.Unlock()
|
||||
|
||||
// prevent a pull if the last one was less than 5 seconds ago
|
||||
if time.Since(r.lastPull) < 5*time.Second {
|
||||
if gos.TimeSince(r.lastPull) < 5*time.Second {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user