From 11abda5684603873d6eb8000a6c7e4636f8e9c5e Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Thu, 14 Nov 2024 18:31:21 +0800 Subject: [PATCH] update dependencies Signed-off-by: Weizhen Wang --- ddl/ddl_api_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ddl/ddl_api_test.go b/ddl/ddl_api_test.go index 9283389047ecf..2b8874294dde8 100644 --- a/ddl/ddl_api_test.go +++ b/ddl/ddl_api_test.go @@ -15,6 +15,7 @@ package ddl_test import ( + "cmp" "context" "fmt" "sync" @@ -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)