trivial fix

This commit is contained in:
WanLinghao 2018-10-23 10:23:31 +08:00
parent 7df1078d6f
commit 060f3a84d9

View File

@ -323,6 +323,9 @@ func TestDeleteServiceAccountToken(t *testing.T) {
testMgr.clock = clock.NewFakeClock(time.Time{}.Add(30 * 24 * time.Hour))
successGetToken := func(_, _ string, tr *authenticationv1.TokenRequest) (*authenticationv1.TokenRequest, error) {
tr.Status = authenticationv1.TokenRequestStatus{
ExpirationTimestamp: metav1.Time{Time: testMgr.clock.Now().Add(10 * time.Hour)},
}
return tr, nil
}
failGetToken := func(_, _ string, tr *authenticationv1.TokenRequest) (*authenticationv1.TokenRequest, error) {