Use a token store with an initialized exp mananger in TestTokenStore_RevokeSelf (#4590)

This commit is contained in:
Calvin Leung Huang 2018-05-18 12:13:37 -07:00 committed by GitHub
parent 484b32d3da
commit 95958dd9f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -904,7 +904,8 @@ func buildTokenTree(t testing.TB, ts *TokenStore, depth uint64) (root *TokenEntr
}
func TestTokenStore_RevokeSelf(t *testing.T) {
_, ts, _, _ := TestCoreWithTokenStore(t)
exp := mockExpiration(t)
ts := exp.tokenStore
ent1 := &TokenEntry{}
if err := ts.create(context.Background(), ent1); err != nil {