mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-05-25 16:23:03 +02:00
Account API endpoint fixes
This commit is contained in:
parent
f79348817f
commit
7ca9afad57
7 changed files with 15 additions and 13 deletions
user
|
@ -244,6 +244,7 @@ func TestManager_Token_Valid(t *testing.T) {
|
|||
|
||||
// Create token for user
|
||||
token, err := a.CreateToken(u)
|
||||
require.Nil(t, err)
|
||||
require.NotEmpty(t, token.Value)
|
||||
require.True(t, time.Now().Add(71*time.Hour).Unix() < token.Expires.Unix())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue