Commit 060f3a84 authored by WanLinghao's avatar WanLinghao

trivial fix

parent 7df1078d
...@@ -323,6 +323,9 @@ func TestDeleteServiceAccountToken(t *testing.T) { ...@@ -323,6 +323,9 @@ func TestDeleteServiceAccountToken(t *testing.T) {
testMgr.clock = clock.NewFakeClock(time.Time{}.Add(30 * 24 * time.Hour)) testMgr.clock = clock.NewFakeClock(time.Time{}.Add(30 * 24 * time.Hour))
successGetToken := func(_, _ string, tr *authenticationv1.TokenRequest) (*authenticationv1.TokenRequest, error) { 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 return tr, nil
} }
failGetToken := func(_, _ string, tr *authenticationv1.TokenRequest) (*authenticationv1.TokenRequest, error) { failGetToken := func(_, _ string, tr *authenticationv1.TokenRequest) (*authenticationv1.TokenRequest, error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment