Skip to content

Commit

Permalink
chore(authtoken): Fix lint errors in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tmessi committed Feb 23, 2024
1 parent 2e69d59 commit 4b0e7ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion internal/authtoken/authtoken_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ func TestAuthToken_DbCreate(t *testing.T) {
am := password.TestAuthMethods(t, conn, org.GetPublicId(), 1)[0]
acct := password.TestAccount(t, conn, am.GetPublicId(), "name1")
createdAuthToken := TestAuthToken(t, conn, kms, org.GetPublicId())
iamRepo.AddUserAccounts(ctx, user.GetPublicId(), user.GetVersion(), []string{acct.GetPublicId()})
_, err = iamRepo.AddUserAccounts(ctx, user.GetPublicId(), user.GetVersion(), []string{acct.GetPublicId()})
require.NoError(t, err)

testAuthTokenId := func() string {
id, err := NewAuthTokenId(ctx)
Expand Down
2 changes: 1 addition & 1 deletion internal/authtoken/repository_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ func Test_CloseExpiredPendingTokens(t *testing.T) {
user, _, err = iamRepo.LookupUser(ctx, user.GetPublicId())
require.NoError(t, err)

iamRepo.AddUserAccounts(ctx, user.GetPublicId(), user.GetVersion(), []string{accts[i].GetPublicId()})
_, _ = iamRepo.AddUserAccounts(ctx, user.GetPublicId(), user.GetVersion(), []string{accts[i].GetPublicId()})

at := allocAuthToken()
id, err := NewAuthTokenId(ctx)
Expand Down

0 comments on commit 4b0e7ab

Please sign in to comment.