aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2019-08-05 20:45:40 +0100
committerChristopher Baines <mail@cbaines.net>2019-08-05 20:45:40 +0100
commit712dd377a1e972dd6a04d461b3d59ab8a279ae2f (patch)
treee92a608118204dd5d915c86207a18dc199a120e1 /tests
parentf553a7490d215edf0d093bf4b5eee6c23440e916 (diff)
downloaddata-service-712dd377a1e972dd6a04d461b3d59ab8a279ae2f.tar
data-service-712dd377a1e972dd6a04d461b3d59ab8a279ae2f.tar.gz
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/jobs-load-new-guix-revision.scm9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/jobs-load-new-guix-revision.scm b/tests/jobs-load-new-guix-revision.scm
index aee6225..14d0e33 100644
--- a/tests/jobs-load-new-guix-revision.scm
+++ b/tests/jobs-load-new-guix-revision.scm
@@ -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)