diff --git a/integration/ai_chat_test.go b/integration/ai_chat_test.go index a543723..86a5731 100644 --- a/integration/ai_chat_test.go +++ b/integration/ai_chat_test.go @@ -66,6 +66,7 @@ func TestTaskDetailView_ChatModifiesTask(t *testing.T) { updated := ta.TaskStore.GetTask(taskID) if updated == nil { t.Fatal("task not found after chat") + return } if updated.Title != "AI Modified Title" { t.Errorf("title = %q, want %q", updated.Title, "AI Modified Title") @@ -114,6 +115,7 @@ func TestTaskDetailView_ChatNotAvailableWithoutConfig(t *testing.T) { task := ta.TaskStore.GetTask(taskID) if task == nil { t.Fatal("task not found") + return } if task.Title != "Unchanged Title" { t.Errorf("title = %q, want %q", task.Title, "Unchanged Title") diff --git a/integration/deps_editor_test.go b/integration/deps_editor_test.go index de4e5fa..1db2cc1 100644 --- a/integration/deps_editor_test.go +++ b/integration/deps_editor_test.go @@ -158,6 +158,7 @@ func TestDepsEditor_MoveTask_AllToDepends_PersistsOnDisk(t *testing.T) { updated := ta.TaskStore.GetTask(contextID) if updated == nil { t.Fatalf("context task not found in store") + return } if !slices.Contains(updated.DependsOn, freeID) { t.Errorf("DependsOn = %v, want it to contain %s", updated.DependsOn, freeID) @@ -170,6 +171,7 @@ func TestDepsEditor_MoveTask_AllToDepends_PersistsOnDisk(t *testing.T) { reloaded := ta.TaskStore.GetTask(contextID) if reloaded == nil { t.Fatalf("context task not found after reload") + return } if !slices.Contains(reloaded.DependsOn, freeID) { t.Errorf("after reload: DependsOn = %v, want it to contain %s", reloaded.DependsOn, freeID) @@ -223,6 +225,7 @@ func TestDepsEditor_MoveTask_DependsToAll_RemovesDep(t *testing.T) { updated := ta.TaskStore.GetTask(contextID) if updated == nil { t.Fatalf("context task not found in store") + return } if slices.Contains(updated.DependsOn, depID) { t.Errorf("DependsOn = %v, should not contain %s after removal", updated.DependsOn, depID) @@ -235,6 +238,7 @@ func TestDepsEditor_MoveTask_DependsToAll_RemovesDep(t *testing.T) { reloaded := ta.TaskStore.GetTask(contextID) if reloaded == nil { t.Fatalf("context task not found after reload") + return } if slices.Contains(reloaded.DependsOn, depID) { t.Errorf("after reload: DependsOn = %v, should not contain %s", reloaded.DependsOn, depID)