Refactor channel handling in the load-new-guix-revision module
To allow for passing the channel to channel-news-for-commit.
This commit is contained in:
parent
7c611402a0
commit
66d726f1fd
2 changed files with 21 additions and 24 deletions
|
|
@ -22,8 +22,8 @@
|
|||
#t
|
||||
(mock
|
||||
((guix-data-service jobs load-new-guix-revision)
|
||||
store-item-for-git-repository-id-and-commit
|
||||
(lambda (conn git-repository-id commit)
|
||||
store-item-for-channel
|
||||
(lambda (conn channel)
|
||||
"/gnu/store/test"))
|
||||
|
||||
(mock
|
||||
|
|
@ -46,8 +46,8 @@
|
|||
#f
|
||||
(mock
|
||||
((guix-data-service jobs load-new-guix-revision)
|
||||
store-item-for-git-repository-id-and-commit
|
||||
(lambda (conn git-repository-id commit)
|
||||
store-item-for-channel
|
||||
(lambda (conn channel)
|
||||
#f))
|
||||
|
||||
(match (enqueue-load-new-guix-revision-job
|
||||
|
|
@ -64,8 +64,8 @@
|
|||
#f
|
||||
(mock
|
||||
((guix-data-service jobs load-new-guix-revision)
|
||||
store-item-for-git-repository-id-and-commit
|
||||
(lambda (conn git-repository-id commit)
|
||||
store-item-for-channel
|
||||
(lambda (conn channel)
|
||||
"/gnu/store/test"))
|
||||
|
||||
(mock
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue