Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
avatus committed Jun 4, 2024
1 parent 7edfe8f commit d44bfb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/auth/tls_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4636,12 +4636,12 @@ func TestGRPCServer_GetTokens(t *testing.T) {
)
require.NoError(t, err)

t.Run("no tokens", func(t *testing.T) {
t.Run("no extra tokens", func(t *testing.T) {
client, err := testSrv.NewClient(TestUser(privilegedUser.GetName()))
require.NoError(t, err)
toks, err := client.GetTokens(ctx)
require.NoError(t, err)
require.Empty(t, toks)
require.Len(t, toks, 1) // only a single static token exists
})

// Create tokens to then assert are returned
Expand Down
1 change: 1 addition & 0 deletions lib/web/join_tokens_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ func Test_deleteToken(t *testing.T) {
Id: "static-token",
SafeName: "************",
Roles: types.SystemRoles{types.RoleNode},
Expiry: time.Unix(0, 0).UTC(),
IsStatic: true,
Method: types.JoinMethodToken,
}
Expand Down

0 comments on commit d44bfb3

Please sign in to comment.