Skip to content

Commit e3386d1

Browse files
committed
Fix
1 parent dabd93a commit e3386d1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"context"
99
"net/http"
1010
"net/http/httptest"
11+
"sort"
1112
"testing"
1213

1314
connect "github.com/bufbuild/connect-go"
@@ -137,6 +138,10 @@ func TestTokensService_ListPersonalAccessTokens(t *testing.T) {
137138
}),
138139
)
139140

141+
sort.Slice(tokens, func(i, j int) bool {
142+
return tokens[i].CreatedAt.Before(tokens[j].CreatedAt)
143+
})
144+
140145
response, err := client.ListPersonalAccessTokens(context.Background(), connect.NewRequest(&v1.ListPersonalAccessTokensRequest{}))
141146
require.NoError(t, err)
142147

0 commit comments

Comments
 (0)