diff options
author | Christopher Baines <mail@cbaines.net> | 2020-02-13 19:38:20 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2020-02-13 23:11:36 +0000 |
commit | 0ef3349ed883bbaf3c6a10b4349b1a6f0d48c5e5 (patch) | |
tree | f266fb99308f77d0ab081b877528e1f9416a14e7 /tests | |
parent | 32052c45b316ea3f7c9c8df62e5e1879e30a8ad2 (diff) | |
download | data-service-0ef3349ed883bbaf3c6a10b4349b1a6f0d48c5e5.tar data-service-0ef3349ed883bbaf3c6a10b4349b1a6f0d48c5e5.tar.gz |
Use a more long lived store connection for loading data
As this will enable registering temporary roots, to avoid store items being
garbage collected.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/jobs-load-new-guix-revision.scm | 16 |
1 files changed, 8 insertions, 8 deletions
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 |