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.
This commit is contained in:
Marvin Zhang
2025-04-22 16:50:56 +08:00
parent 4f57d277e7
commit 1aa58f5065

View File

@@ -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(),
}