$ git diff HEAD diff --git a/tests/publish.scm b/tests/publish.scm index 4dc8075..fda0b7c 100644 --- a/tests/publish.scm +++ b/tests/publish.scm @@ -172,11 +172,13 @@ References: ~%" "bar" (call-with-temporary-output-file (lambda (temp port) - (let ((nar (http-get-port - (publish-uri - (string-append "/nar/gzip/" (basename %item)))))) - (call-with-gzip-input-port nar - (cut restore-file <> temp))) + (let* ((nar (http-get-port + (publish-uri + (string-append "/nar/gzip/" (basename %item))))) + (data (call-with-gzip-input-port nar + get-bytevector-all)) + (input (open-bytevector-input-port data))) + (restore-file input temp)) (call-with-input-file temp read-string)))) (unless (zlib-available?)