From d7545994ab89eb968dc5c7195b45a108d5f2e4f4 Mon Sep 17 00:00:00 2001 From: Biagio00 Date: Tue, 14 Oct 2025 11:43:10 +0200 Subject: [PATCH] lint fix for previous commit --- pkg/models/kanban_task_bucket_test.go | 4 ++-- pkg/models/task_collection_test.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/models/kanban_task_bucket_test.go b/pkg/models/kanban_task_bucket_test.go index 0d3d8f7fb..968e338fd 100644 --- a/pkg/models/kanban_task_bucket_test.go +++ b/pkg/models/kanban_task_bucket_test.go @@ -142,7 +142,7 @@ func TestTaskBucket_Update(t *testing.T) { ProjectID: 1, // In actual web requests set via the url } - // Before running the TaskBucket Update we retrive the task and execute + // Before running the TaskBucket Update we retrieve the task and execute // an updateDone to obtain the task with updated start/end/due dates // This way we can later match them with what happens after running TaskBucket Update u := &user.User{ID: 1} @@ -170,7 +170,7 @@ func TestTaskBucket_Update(t *testing.T) { "task_id": 1, "bucket_id": 1, }, false) - + assert.Equal(t, updatedTask.DueDate.Unix(), tb.Task.DueDate.Unix()) assert.Equal(t, updatedTask.StartDate.Unix(), tb.Task.StartDate.Unix()) assert.Equal(t, updatedTask.EndDate.Unix(), tb.Task.EndDate.Unix()) diff --git a/pkg/models/task_collection_test.go b/pkg/models/task_collection_test.go index 56c445e92..06ce891db 100644 --- a/pkg/models/task_collection_test.go +++ b/pkg/models/task_collection_test.go @@ -512,9 +512,9 @@ func TestTaskCollection_ReadAll(t *testing.T) { RepeatAfter: 3600, Created: time.Unix(1543626724, 0).In(loc), Updated: time.Unix(1543626724, 0).In(loc), - DueDate: time.Unix(1543789524, 0).In(loc), - StartDate: time.Unix(1543616724, 0).In(loc), - EndDate: time.Unix(1544700000, 0).In(loc), + DueDate: time.Unix(1543789524, 0).In(loc), + StartDate: time.Unix(1543616724, 0).In(loc), + EndDate: time.Unix(1544700000, 0).In(loc), } task29 := &Task{ ID: 29,