1
// Copyright 2015 Canonical Ltd.
2
// Licensed under the AGPLv3, see LICENCE file for details.
7
"github.com/juju/utils/clock"
10
// GetClock exists to allow us to patch out time-handling; specifically
11
// for the worker/uniter tests that want to know what happens when leases
12
// expire unexpectedly.
14
// TODO(fwereade): lp:1479653
15
// This is *clearly* a bad idea, and we should be injecting the dependency
16
// explicitly -- and using an injected clock across the codebase -- but,
18
var GetClock = func() clock.Clock {
19
return clock.WallClock