Remove test data after the tests have ran
The load-new-guix-revision tests aren't transactional, so truncate some tables after running the tests.
This commit is contained in:
parent
f553a7490d
commit
712dd377a1
1 changed files with 8 additions and 1 deletions
|
|
@ -40,6 +40,8 @@
|
||||||
((id)
|
((id)
|
||||||
(process-load-new-guix-revision-job id))))))
|
(process-load-new-guix-revision-job id))))))
|
||||||
|
|
||||||
|
(exec-query conn "TRUNCATE load_new_guix_revision_jobs CASCADE")
|
||||||
|
|
||||||
(test-equal "test build store item failure"
|
(test-equal "test build store item failure"
|
||||||
#f
|
#f
|
||||||
(mock
|
(mock
|
||||||
|
|
@ -56,6 +58,8 @@
|
||||||
((id)
|
((id)
|
||||||
(process-load-new-guix-revision-job id)))))
|
(process-load-new-guix-revision-job id)))))
|
||||||
|
|
||||||
|
(exec-query conn "TRUNCATE load_new_guix_revision_jobs CASCADE")
|
||||||
|
|
||||||
(test-equal "test extract information failure"
|
(test-equal "test extract information failure"
|
||||||
#f
|
#f
|
||||||
(mock
|
(mock
|
||||||
|
|
@ -76,6 +80,9 @@
|
||||||
"test-commit"
|
"test-commit"
|
||||||
"test-source")
|
"test-source")
|
||||||
((id)
|
((id)
|
||||||
(process-load-new-guix-revision-job id))))))))
|
(process-load-new-guix-revision-job id))))))
|
||||||
|
|
||||||
|
(exec-query conn "TRUNCATE load_new_guix_revision_jobs CASCADE")))
|
||||||
|
|
||||||
|
|
||||||
(test-end)
|
(test-end)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue