tests: Fix the 'go-module->guix-package' test.

This fixes a regression that would have been introduced by commit
a8b927a562 ("import: go: Add an option to use pinned versions.") which is
already 3 years old (!).

* tests/go.scm (fixtures-go-check-test): Register new URL and data for
http-fetch and http-get mocks.

Change-Id: Ie9d306612971de54ce534563731f52baf64bc8e7
This commit is contained in:
Maxim Cournoyer 2024-11-17 20:28:16 +09:00
parent db4ef36acc
commit 94133452aa
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -137,6 +137,8 @@ (define fixture-go-mod-strings
(define fixtures-go-check-test (define fixtures-go-check-test
(let ((version (let ((version
"{\"Version\":\"v0.0.0-20201130134442-10cb98267c6c\",\"Time\":\"2020-11-30T13:44:42Z\"}") "{\"Version\":\"v0.0.0-20201130134442-10cb98267c6c\",\"Time\":\"2020-11-30T13:44:42Z\"}")
(go.info
"{\"Version\":\"v0.0.0-20201130134442-10cb98267c6c\",\"Time\":\"2020-11-30T13:44:42Z\"}")
(go.mod (go.mod
"module gopkg.in/check.v1 "module gopkg.in/check.v1
@ -174,6 +176,8 @@ (define fixtures-go-check-test
. ,go.mod) . ,go.mod)
("https://proxy.golang.org/github.com/go-check/check/@latest" ("https://proxy.golang.org/github.com/go-check/check/@latest"
. ,version) . ,version)
("https://proxy.golang.org/github.com/go-check/check/@v/v0.0.0-20201130134442-10cb98267c6c.info"
. ,go.info)
("https://github.com/go-check/check?go-get=1" ("https://github.com/go-check/check?go-get=1"
. ,go-get) . ,go-get)
("https://pkg.go.dev/github.com/go-check/check" ("https://pkg.go.dev/github.com/go-check/check"