tests: Fix HTTP tests.

This is a follow-up of 154232bc76.

* tests/http.scm (evaluations-query-result): Add 'timestamp', 'checkouttime'
and 'evaltime' fields.
(fill-db): Pass a matching timestamp to "db-add-evaluation" calls.
This commit is contained in:
Mathieu Othacehe 2020-09-10 14:37:03 +02:00
parent f5b0d39328
commit 00c7b4bb44
No known key found for this signature in database
GPG Key ID: 8354763531769CA6
1 changed files with 7 additions and 2 deletions

View File

@ -79,6 +79,9 @@
#(((#:id . 2)
(#:specification . "guix")
(#:status . -1)
(#:timestamp . 1501347493)
(#:checkouttime . 0)
(#:evaltime . 0)
(#:checkouts . #(((#:commit . "fakesha2")
(#:input . "savannah")
(#:directory . "dir3")))))))
@ -189,8 +192,10 @@
(db-add-build build1)
(db-add-build build2)
(db-add-specification specification)
(db-add-evaluation "guix" checkouts1)
(db-add-evaluation "guix" checkouts2)))
(db-add-evaluation "guix" checkouts1
#:timestamp 1501347493)
(db-add-evaluation "guix" checkouts2
#:timestamp 1501347493)))
(test-assert "/specifications"
(match (call-with-input-string