From 1aa58f50655c6cf1c05999824219d51758070803 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Tue, 22 Apr 2025 16:50:56 +0800 Subject: [PATCH] refactor: remove unused task type field in runner test setup - Eliminated the unused 'Type' field from the Task model in the runner test setup to enhance code clarity and maintainability. --- core/task/handler/runner_test.go | 1 - 1 file changed, 1 deletion(-) diff --git a/core/task/handler/runner_test.go b/core/task/handler/runner_test.go index 4c342863..fb593c5c 100644 --- a/core/task/handler/runner_test.go +++ b/core/task/handler/runner_test.go @@ -63,7 +63,6 @@ func setupRunner(t *testing.T) *Runner { task := &models.Task{ SpiderId: spiderId, Status: constants.TaskStatusPending, - Type: "test", Mode: "test", NodeId: primitive.NewObjectID(), }