mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 07:57:35 +00:00
extend fake clock
This commit is contained in:
@@ -431,8 +431,8 @@ func TestGarbageCollectImageNotOldEnough(t *testing.T) {
|
||||
},
|
||||
}
|
||||
|
||||
fakeClock := util.FakeClock{Time: time.Now()}
|
||||
fmt.Println(fakeClock.Now())
|
||||
fakeClock := util.NewFakeClock(time.Now())
|
||||
t.Log(fakeClock.Now())
|
||||
require.NoError(t, manager.detectImages(fakeClock.Now()))
|
||||
require.Equal(t, manager.imageRecordsLen(), 2)
|
||||
// no space freed since one image is in used, and another one is not old enough
|
||||
|
||||
Reference in New Issue
Block a user