Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Weizhen Wang <[email protected]>
  • Loading branch information
hawkingrei committed Nov 14, 2024
1 parent 3150200 commit 11abda5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ddl/ddl_api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
package ddl_test

import (
"cmp"
"context"
"fmt"
"sync"
Expand Down Expand Up @@ -110,8 +111,8 @@ func TestGetDDLJobsIsSort(t *testing.T) {
require.NoError(t, err)
require.Len(t, currJobs, 15)

isSort := slices.IsSortedFunc(currJobs, func(i, j *model.Job) bool {
return i.ID <= j.ID
isSort := slices.IsSortedFunc(currJobs, func(i, j *model.Job) int {
return cmp.Compare(i.ID, j.ID)
})
require.True(t, isSort)

Expand Down

0 comments on commit 11abda5

Please sign in to comment.