From a358c8c0eab0cb4ecc013a190c424bef58c89eab Mon Sep 17 00:00:00 2001 From: Stephen Adamson Date: Thu, 20 Aug 2026 16:39:53 +0100 Subject: [PATCH] docs: README test count, Technical Manual default hours table, local-dev-2.sh config Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- README.md | 2 +- local-dev-2.sh | 2 +- obsidian/Crussell/Technical Manual.md | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index dc61e41..bf95a86 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,7 @@ Default logins (password: `password`): ```bash cd backend && go build -o bin/backend ./main.go cd frontend && npm ci && npm run build -cd backend && go test -tags "test,dev" -count=1 -parallel 8 ./... # 2,631 backend test functions under the test,dev tags (per `go test -tags "test,dev" -list 'Test.*'`) + 153 frontend vitest cases (116 plain `it(` + 37 `it.each` rows), as of 16 Aug 2026 (~2min) +cd backend && go test -tags "test,dev" -count=1 -parallel 8 ./... # 2,781 backend test functions under the test,dev tags (per `go test -tags "test,dev" -list 'Test.*'`) + 161 frontend vitest cases, as of 20 Aug 2026 (~2min) cd backend && go test -tags "test,dev" -count=1 -race -timeout 480s ./... # race detector (all packages, ~4min) # NOTE: -count=N>1 is unreliable for handlers/payments and handlers/webhooks — # those suites share package-global state (Square mock ledger, in-memory webhook diff --git a/local-dev-2.sh b/local-dev-2.sh index ab678e4..29c8c78 100755 --- a/local-dev-2.sh +++ b/local-dev-2.sh @@ -308,7 +308,7 @@ login() { wait_for_backend() { echo -ne "⏳ Waiting for backend..." for ((i=1; i<=60; i++)); do - if curl -s --connect-timeout 2 http://localhost:8080/api/register > /dev/null 2>&1; then + if curl -s --connect-timeout 2 --max-time 5 http://localhost:8080/api/register > /dev/null 2>&1; then echo -e "\r⏳ Waiting for backend... ${C_GREEN}Ready!${C_RESET}" return 0 fi diff --git a/obsidian/Crussell/Technical Manual.md b/obsidian/Crussell/Technical Manual.md index 8c826d3..f6ab508 100644 --- a/obsidian/Crussell/Technical Manual.md +++ b/obsidian/Crussell/Technical Manual.md @@ -543,12 +543,12 @@ CORS uses a `FRONTEND_ORIGIN` allowlist, not `*`. `corsAllowedOrigins()` (in `ba | Weekday | Start | End | Open | |---------|-------|-----|------| -| Monday | 09:00 | 17:00 | Yes | +| Monday | — | — | No | | Tuesday | 09:00 | 17:00 | Yes | -| Wednesday | 12:00 | 20:00 | Yes | -| Thursday | 09:00 | 17:00 | Yes | +| Wednesday | 09:00 | 17:00 | Yes | +| Thursday | 12:00 | 20:00 | Yes | | Friday | 09:00 | 17:00 | Yes | -| Saturday | — | — | No | +| Saturday | 09:00 | 17:00 | Yes | | Sunday | — | — | No | ---