Rename tokens.Edit to Extend.

This commit is contained in:
Juliusz Chroboczek
2024-04-14 13:12:19 +02:00
parent 31f89163a2
commit 68887f13d5
3 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -269,11 +269,11 @@ func TestTokenStorage(t *testing.T) {
}
expectTokens(t, s.tokens, tokens)
_, err = s.Edit("test2", tokens[1].Token, now.Add(time.Hour))
_, err = s.Extend("test2", tokens[1].Token, now.Add(time.Hour))
if err == nil {
t.Errorf("Edit succeeded with wrong group")
}
new, err := s.Edit("test", tokens[1].Token, now.Add(time.Hour))
new, err := s.Extend("test", tokens[1].Token, now.Add(time.Hour))
if err != nil {
t.Errorf("Edit: %v", err)
}