Skip to content
Snippets Groups Projects
Unverified Commit 00c7b4bb authored by Mathieu Othacehe's avatar Mathieu Othacehe
Browse files

tests: Fix HTTP tests.

This is a follow-up of 154232bc.

* tests/http.scm (evaluations-query-result): Add 'timestamp', 'checkouttime'
and 'evaltime' fields.
(fill-db): Pass a matching timestamp to "db-add-evaluation" calls.
parent f5b0d393
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment