summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Othacehe <othacehe@gnu.org>2020-09-17 10:39:25 +0200
committerMathieu Othacehe <othacehe@gnu.org>2020-09-17 10:39:25 +0200
commitd22ffdfa2ab2e692e41dbc8c2e6c4d25a79ee9cd (patch)
treea0cbdbce8f58caab8cf7a5c11b7d161d5781f92a
parent89f0dbc8e19ec14a804f540213643858e7055b66 (diff)
downloadcuirass-d22ffdfa2ab2e692e41dbc8c2e6c4d25a79ee9cd.tar
cuirass-d22ffdfa2ab2e692e41dbc8c2e6c4d25a79ee9cd.tar.gz
metrics: Fix tests.
* tests/metrics.scm ("builds-per-day", "new-derivations-per-day"): Fix tests results that were depending of the local time. ("evaluation-completion-speed"): Adapt to new unit.
-rw-r--r--tests/metrics.scm6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/metrics.scm b/tests/metrics.scm
index dfe3728..48ee53a 100644
--- a/tests/metrics.scm
+++ b/tests/metrics.scm
@@ -94,7 +94,7 @@ nix_name, log, status, timestamp, starttime, stoptime) VALUES
(db-get-metrics-with-id 'average-eval-duration-per-spec)))
(test-equal "builds-per-day"
- 2.0
+ 1.0
(begin
(db-update-metric 'builds-per-day)
(db-get-metric 'builds-per-day yesterday)))
@@ -106,7 +106,7 @@ nix_name, log, status, timestamp, starttime, stoptime) VALUES
(db-get-metrics-with-id 'pending-builds)))
(test-equal "new-derivations-per-day"
- `((,yesterday . 2.0))
+ `((,yesterday . 1.0))
(begin
(db-update-metric 'new-derivations-per-day)
(db-get-metrics-with-id 'new-derivations-per-day)))
@@ -140,7 +140,7 @@ nix_name, log, status, timestamp, starttime, stoptime) VALUES
(db-get-metrics-with-id 'average-eval-build-complete-time)))
(test-equal "evaluation-completion-speed"
- 15.0
+ 900.0
(begin
(db-update-metric 'evaluation-completion-speed 4)
(db-get-metric 'evaluation-completion-speed 4)))