From 0ef3349ed883bbaf3c6a10b4349b1a6f0d48c5e5 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Thu, 13 Feb 2020 19:38:20 +0000 Subject: Use a more long lived store connection for loading data As this will enable registering temporary roots, to avoid store items being garbage collected. --- tests/jobs-load-new-guix-revision.scm | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tests') diff --git a/tests/jobs-load-new-guix-revision.scm b/tests/jobs-load-new-guix-revision.scm index b362d55..e101bce 100644 --- a/tests/jobs-load-new-guix-revision.scm +++ b/tests/jobs-load-new-guix-revision.scm @@ -25,7 +25,7 @@ (mock ((guix-data-service jobs load-new-guix-revision) channel->derivations-by-system - (lambda (conn channel) + (lambda (conn store channel) '((x86_64-linux . ((manifest-entry-item . /gnu/store/foo.drv) @@ -34,13 +34,13 @@ (mock ((guix-data-service jobs load-new-guix-revision) channel-derivations-by-system->guix-store-item - (lambda (channel-derivations-by-system) + (lambda (store channel-derivations-by-system) "/gnu/store/test")) (mock ((guix-data-service jobs load-new-guix-revision) extract-information-from - (lambda (conn guix-revision-id commit store-path) + (lambda (conn store guix-revision-id commit store-path) #t)) (mock @@ -71,7 +71,7 @@ (mock ((guix-data-service jobs load-new-guix-revision) channel->derivations-by-system - (lambda (conn channel) + (lambda (conn store channel) '(x86_64-linux . ((manifest-entry-item . /gnu/store/foo.drv) @@ -80,7 +80,7 @@ (mock ((guix-data-service jobs load-new-guix-revision) channel-derivations-by-system->guix-store-item - (lambda (channel-derivations-by-system) + (lambda (store channel-derivations-by-system) #f)) (match (enqueue-load-new-guix-revision-job @@ -98,7 +98,7 @@ (mock ((guix-data-service jobs load-new-guix-revision) channel->derivations-by-system - (lambda (conn channel) + (lambda (conn store channel) '(x86_64-linux . ((manifest-entry-item . /gnu/store/foo.drv) @@ -107,13 +107,13 @@ (mock ((guix-data-service jobs load-new-guix-revision) channel-derivations-by-system->guix-store-item - (lambda (channel-derivations-by-system) + (lambda (store channel-derivations-by-system) "/gnu/store/test")) (mock ((guix-data-service jobs load-new-guix-revision) extract-information-from - (lambda (conn git-repository-id commit store-path) + (lambda (conn store git-repository-id commit store-path) #f)) (mock -- cgit v1.2.3