tests: Allow opam test to run without networking.
authorLudovic Courtès <ludo@gnu.org>
Sat, 18 Sep 2021 16:24:05 +0000 (18:24 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sat, 18 Sep 2021 17:37:44 +0000 (19:37 +0200)
commit358ad74f41a59b177c9961abf49753a7ce3f41a0
treeeb507dd8084d1c350c9577c2b5d7c1227c217858
parent511dc6877e0664d83fd800cc601fa94c231a0d0f
tests: Allow opam test to run without networking.

Fixes a regression introduced in
fc29c80b9635ff490bcc768c774442043cb1e231, where, since
'get-opam-repository' was no longer mocked, the test would try to access
the actual OPAM repository through a call to 'http-fetch/cached'; this
would lead to a test failure when networking is unavailable.

* tests/opam.scm ("opam->guix-package"): Mock 'get-opam-repository'
again.
tests/opam.scm