Use a token store with an initialized exp mananger in TestTokenStore_RevokeSelf (#4590)
This commit is contained in:
parent
484b32d3da
commit
95958dd9f9
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue