From a3a9b8293cc155db34ee07923bdfbeef51a42264 Mon Sep 17 00:00:00 2001 From: Robin Olsen Date: Mon, 23 Feb 2026 12:26:48 +0100 Subject: [PATCH] use new utility --- cmd/survey/tasks/codingTask.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/survey/tasks/codingTask.go b/cmd/survey/tasks/codingTask.go index 520e7ef..dcc4e13 100644 --- a/cmd/survey/tasks/codingTask.go +++ b/cmd/survey/tasks/codingTask.go @@ -5,6 +5,7 @@ import ( "fmt" "os" "strings" + "time" "github.com/LazyBachelor/LazyPM/internal/service" "github.com/LazyBachelor/LazyPM/pkg/task" @@ -99,5 +100,5 @@ func (t *CodingTask) Validate(ctx context.Context) (bool, error) { return false, fmt.Errorf("the function does not contain a return statement") } - return true, nil + return EndTaskWithTimeout(nil, "Task completed!", 5*time.Second) }