diff options
author | Christopher Baines <mail@cbaines.net> | 2020-02-24 16:46:10 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2020-02-24 16:46:10 +0000 |
commit | 0c726b9fe731490c6ddfc147cbaf7fb925332447 (patch) | |
tree | eceb2a529498bedc918a1695cf90dc77ced716b1 /tests | |
parent | 510e13f1759dee59ba6bc155951db1a6dff49058 (diff) | |
download | data-service-0c726b9fe731490c6ddfc147cbaf7fb925332447.tar data-service-0c726b9fe731490c6ddfc147cbaf7fb925332447.tar.gz |
Clear a couple of tables in the load-new-guix-revision tests
As entries from incomplete previous runs can effect the test, so clean out any
old data before the test begins.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/jobs-load-new-guix-revision.scm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/jobs-load-new-guix-revision.scm b/tests/jobs-load-new-guix-revision.scm index 859c63f..fc571dc 100644 --- a/tests/jobs-load-new-guix-revision.scm +++ b/tests/jobs-load-new-guix-revision.scm @@ -23,6 +23,9 @@ '() (select-job-for-commit conn "does not exist")) + (exec-query conn "TRUNCATE guix_revisions CASCADE") + (exec-query conn "TRUNCATE load_new_guix_revision_jobs CASCADE") + (test-equal "test job success" #t (mock |