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:
Christopher Baines 2019-08-05 20:45:40 +01:00
parent f553a7490d
commit 712dd377a1

View file

@ -40,6 +40,8 @@
((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"
#f
(mock
@ -56,6 +58,8 @@
((id)
(process-load-new-guix-revision-job id)))))
(exec-query conn "TRUNCATE load_new_guix_revision_jobs CASCADE")
(test-equal "test extract information failure"
#f
(mock
@ -76,6 +80,9 @@
"test-commit"
"test-source")
((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)