back off restarts of crashlooping containers

Signed-off-by: Sam Abed <samabed@gmail.com>
This commit is contained in:
Sam Abed
2015-08-13 22:59:15 +10:00
parent c92cc62145
commit 995cb15bb6
14 changed files with 505 additions and 34 deletions

View File

@@ -54,3 +54,8 @@ func (f *FakeClock) Now() time.Time {
func (f *FakeClock) Since(ts time.Time) time.Duration {
return f.Time.Sub(ts)
}
// Move clock by Duration
func (f *FakeClock) Step(d time.Duration) {
f.Time = f.Time.Add(d)
}