mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
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:
@@ -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(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user