Skip to content

Commit 969f227

Browse files
author
Laurie T. Malau
committed
m
1 parent f8c1a0d commit 969f227

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/public-api-server/pkg/apiv1/tokens_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func TestTokensService_CreatePersonalAccessTokenWithoutFeatureFlag(t *testing.T)
127127
require.NoError(t, err)
128128

129129
// token must exist in the DB, with the User ID of the requestor
130-
storedInDB, err := db.GetToken(context.Background(), dbConn, uuid.MustParse(created.GetId()))
130+
storedInDB, err := db.GetPersonalAccessTokenForUser(context.Background(), dbConn, uuid.MustParse(created.GetId()), uuid.MustParse(user.ID))
131131
require.NoError(t, err)
132132
require.Equal(t, user.ID, storedInDB.UserID.String())
133133
})

0 commit comments

Comments
 (0)