From 44c921586f0a05fca53fcc94543b7fd93f7a1456 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 18 Apr 2026 20:08:17 +0000 Subject: [PATCH] test(cli): avoid network hang in section extraction test Agent-Logs-Url: https://github.com/github/gh-aw/sessions/bc6a401e-2259-4f85-8bbe-d12a874adbf8 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- pkg/cli/remote_workflow_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cli/remote_workflow_test.go b/pkg/cli/remote_workflow_test.go index 1456f062fd0..34f450b4d47 100644 --- a/pkg/cli/remote_workflow_test.go +++ b/pkg/cli/remote_workflow_test.go @@ -232,7 +232,7 @@ func TestFetchIncludeFromSource_SectionExtraction(t *testing.T) { }, { name: "section at end of path with ref", - includePath: "owner/repo/file.md@v1.0.0#section", + includePath: "shared/file.md@v1.0.0#section", expectSection: "#section", // Section is extracted from the end regardless of @ref position }, { @@ -244,7 +244,7 @@ func TestFetchIncludeFromSource_SectionExtraction(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - // We expect errors since these are remote paths, but section should still be extracted + // We expect resolution errors in these unit tests, but section should still be extracted _, section, _ := FetchIncludeFromSource(tt.includePath, nil, false) assert.Equal(t, tt.expectSection, section, "section should be correctly extracted") })