From 4b0e7ab5a3db805a67e66b7379b0908f7d61e488 Mon Sep 17 00:00:00 2001 From: Timothy Messier Date: Fri, 23 Feb 2024 15:49:49 +0000 Subject: [PATCH] chore(authtoken): Fix lint errors in tests --- internal/authtoken/authtoken_test.go | 3 ++- internal/authtoken/repository_test.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/authtoken/authtoken_test.go b/internal/authtoken/authtoken_test.go index 9a0736b986..898193d157 100644 --- a/internal/authtoken/authtoken_test.go +++ b/internal/authtoken/authtoken_test.go @@ -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) diff --git a/internal/authtoken/repository_test.go b/internal/authtoken/repository_test.go index bf15ee11dd..0b34a066e5 100644 --- a/internal/authtoken/repository_test.go +++ b/internal/authtoken/repository_test.go @@ -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)