Merge pull request #12500 from cli/babakks/polish-copilot-cmd-tests

Fix Windows asset URL in `copilot` command tests
This commit is contained in:
Kynan Ware 2026-01-20 09:39:35 -07:00 committed by GitHub
commit 3d89222e2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -352,9 +352,9 @@ func TestFetchExpectedChecksum(t *testing.T) {
)
client := &http.Client{Transport: reg}
_, err := fetchExpectedChecksum(client, "https://example.com/checksums", "copilot-windows-x64.zip")
_, err := fetchExpectedChecksum(client, "https://example.com/checksums", "copilot-win32-x64.zip")
require.Error(t, err, "expected error for missing archive")
require.Equal(t, "checksum not found for copilot-windows-x64.zip", err.Error(), "unexpected error")
require.Equal(t, "checksum not found for copilot-win32-x64.zip", err.Error(), "unexpected error")
})
t.Run("handles single space separator", func(t *testing.T) {