From 834200c7e15718dfc7618be939e4dbf1fc0d6d57 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 | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/authtoken/authtoken_test.go b/internal/authtoken/authtoken_test.go index 9a0736b9862..898193d1578 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 bf15ee11dd0..4e46a1d5b5e 100644 --- a/internal/authtoken/repository_test.go +++ b/internal/authtoken/repository_test.go @@ -905,7 +905,8 @@ 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()}) + _, err = iamRepo.AddUserAccounts(ctx, user.GetPublicId(), user.GetVersion(), []string{accts[i].GetPublicId()}) + require.NoError(t, err) at := allocAuthToken() id, err := NewAuthTokenId(ctx)