← back to AsSeenInMovies
smoke: uptime_s assertion on /api/health
b8ab370bc6ce122da113e2303913cbe81badf6bd · 2026-05-13 09:59:49 -0700 · SteveStudio2
Files touched
Diff
commit b8ab370bc6ce122da113e2303913cbe81badf6bd
Author: SteveStudio2 <stevestudio2@SteveStacStudio.lan>
Date: Wed May 13 09:59:49 2026 -0700
smoke: uptime_s assertion on /api/health
---
test/smoke.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/test/smoke.js b/test/smoke.js
index cbca58b..73c25f7 100644
--- a/test/smoke.js
+++ b/test/smoke.js
@@ -113,8 +113,9 @@ function check(name, cond, hint = '') {
// 10b. /api/health
r = await fetch('/api/health');
- check('api/health: 200', r.status === 200);
- check('api/health: ok', /"ok":true/.test(r.body));
+ check('api/health: 200', r.status === 200);
+ check('api/health: ok', /"ok":true/.test(r.body));
+ check('api/health: uptime_s', /"uptime_s":\d+/.test(r.body));
// 11. /api/spotted/stats
r = await fetch('/api/spotted/stats');
← 9dd8cca api/health: include uptime_s for ops dashboards
·
back to AsSeenInMovies
·
api/version: deploy fingerprint endpoint (name, version, git 3f7e5d7 →