From d187bef56f3af450af11a54f6fb6bfa69c7ace03 Mon Sep 17 00:00:00 2001 From: Kynan Ware <47394200+BagToad@users.noreply.github.com> Date: Mon, 19 Jan 2026 11:18:32 -0700 Subject: [PATCH] Fix OS name in test archive filename to 'win32' Replaces runtime.GOOS with 'win32' in the test archive filename within TestDownloadCopilot. This ensures the test uses the expected archive name for Windows. --- pkg/cmd/copilot/copilot_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/copilot/copilot_test.go b/pkg/cmd/copilot/copilot_test.go index 94e5f8b9f..f377f171d 100644 --- a/pkg/cmd/copilot/copilot_test.go +++ b/pkg/cmd/copilot/copilot_test.go @@ -566,7 +566,7 @@ func TestDownloadCopilot(t *testing.T) { checksum := sha256.Sum256(archive) checksumHex := hex.EncodeToString(checksum[:]) - archiveName := fmt.Sprintf("copilot-%s-%s.zip", runtime.GOOS, archString()) + archiveName := fmt.Sprintf("copilot-%s-%s.zip", "win32", archString()) checksumFile := fmt.Sprintf("%s %s\n", checksumHex, archiveName) reg := &httpmock.Registry{}