Skip to content

Commit 0aa24fb

Browse files
committed
Fix up
1 parent 043d01a commit 0aa24fb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ package apiv1
77
import (
88
"context"
99
"fmt"
10-
"google.golang.org/protobuf/types/known/fieldmaskpb"
1110
"net/http"
1211
"net/http/httptest"
1312
"strings"
1413
"testing"
1514
"time"
1615

16+
"google.golang.org/protobuf/types/known/fieldmaskpb"
17+
1718
connect "github.com/bufbuild/connect-go"
1819
"github.com/gitpod-io/gitpod/common-go/experiments"
1920
"github.com/gitpod-io/gitpod/common-go/experiments/experimentstest"
@@ -516,10 +517,10 @@ func TestTokensService_UpdatePersonalAccessToken(t *testing.T) {
516517
serverMock.EXPECT().GetTeams(gomock.Any()).Return(teams, nil)
517518

518519
token := &v1.PersonalAccessToken{
519-
Id: uuid.New().String(),
520-
Description: "foo",
520+
Id: uuid.New().String(),
521+
Name: "foo-bar",
521522
}
522-
mask, err := fieldmaskpb.New(token, "description")
523+
mask, err := fieldmaskpb.New(token, "name")
523524
require.NoError(t, err)
524525

525526
_, err = client.UpdatePersonalAccessToken(context.Background(), connect.NewRequest(&v1.UpdatePersonalAccessTokenRequest{

0 commit comments

Comments
 (0)