diff --git a/pkg/disttask/framework/taskexecutor/slot_test.go b/pkg/disttask/framework/taskexecutor/slot_test.go index 65fff426b9f04..885c47745ac65 100644 --- a/pkg/disttask/framework/taskexecutor/slot_test.go +++ b/pkg/disttask/framework/taskexecutor/slot_test.go @@ -21,18 +21,17 @@ import ( "github.com/stretchr/testify/require" ) -const ( - managerID = "test" - taskID = int64(1) - taskID2 = int64(2) -) - func TestSlotManager(t *testing.T) { sm := slotManager{ executorSlotInfos: make(map[int64]*slotInfo), available: 10, } + var ( + taskID = int64(1) + taskID2 = int64(2) + ) + task := &proto.Task{ ID: taskID, Priority: 1,