diff --git a/task_test.go b/task_test.go index f91deb9c..c3680d1a 100644 --- a/task_test.go +++ b/task_test.go @@ -588,8 +588,9 @@ func TestDetails(t *testing.T) { assert.NotContains(t, buff.String(), "dependend-task was executed") buff.Reset() - assert.NoError(t, e.Run(context.Background(), taskfile.Call{Task: "task-without-details"})) - assert.Equal(t, buff.String(), "task: There is no detailed description for task: task-without-details\n") + const noDetails = "task-without-details" + assert.NoError(t, e.Run(context.Background(), taskfile.Call{Task: noDetails})) + assert.Equal(t, buff.String(), "task: There is no detailed description for task: "+noDetails+"\n") buff.Reset() const firstTask = "other-task-with-details"