Skip to content

Commit 69a2b63

Browse files
mustard-mheasyCZ
andauthored
Update components/public-api-server/pkg/apiv1/tokens_test.go
Co-authored-by: Milan Pavlik <[email protected]>
1 parent d0794cb commit 69a2b63

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
@@ -388,7 +388,7 @@ func TestTokensService_RegeneratePersonalAccessToken(t *testing.T) {
388388
newTimestamp := timestamppb.New(newTime)
389389
_, err = client.RegeneratePersonalAccessToken(context.Background(), connect.NewRequest(&v1.RegeneratePersonalAccessTokenRequest{
390390
Id: someTokenId,
391-
ExpirationTime: newTimestamp,
391+
ExpirationTime: timestampb.New(time.Date(2023, 1, 2, 15, 4, 5, 0, 0, time.UTC))
392392
}))
393393
require.Error(t, err, fmt.Errorf("Token with ID %s does not exist: not found", someTokenId))
394394
})

0 commit comments

Comments
 (0)