Commit Graph
18 Commits
Author SHA1 Message Date
angelandClaude Sonnet 5 707aa65ddc tests: migrate assertions to testify's assert/require
Replaces raw t.Error/t.Errorf/t.Fatal/t.Fatalf across every test file
that has any (domains/accounts, domains/authentication,
domains/raw_events, domains/amazon, domains/reports x2) with testify's
assert (non-halting) / require (halting) equivalents. The three
Example-based tests (server/ui/svg, server/ui/charts) have no
*testing.T at all - nothing to convert there.

require.Eventually replaces several hand-rolled polling loops in
domains/amazon/mock_test.go. Its condition function runs on a separate
goroutine (confirmed in testify's source), so calling require.* from
inside one - which two of the new Eventually calls initially did, via
the isProcessed helper - is unsafe per Go's testing rules (t.FailNow
must only be called from the test's own goroutine). Fixed by splitting
a *testing.T-free queryIsProcessed(ctx, pool, shopID, eventID) out of
isProcessed for use inside those closures specifically.

github.com/stretchr/testify promoted from an indirect to a direct
dependency (go.mod only - it was already present transitively, so
go.sum is unchanged).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XEDaCB7C2NEBgyvqEtZuxY
2026-08-20 00:36:55 -06:00
angel 6a473b2ea0 Claude-assisted improvements (untested)
- dev auth flow (side-step OAuth)
- db event processing integration tests
- dev scripts (eg Makefile)
- db / test db migration setup scripts.
2026-08-20 00:35:22 -06:00
angel 6838d13c7a updated templater library; added accordion component 2026-02-14 01:29:28 -07:00
angel 649595718c new response middleware functions to simplify middleware 2026-01-23 22:16:11 -07:00
angel c4348d6d3d updated draft sync group table buttons upon table change 2026-01-21 00:40:33 -07:00
angel 4dd2f9aa89 oops 2026-01-19 11:14:48 -07:00
angel af903512be updated templater library 2026-01-19 11:13:16 -07:00
angel 4c25e5e8e9 updated templater 2026-01-18 17:39:07 -07:00
angel 7481cec0d5 installed gin 2026-01-13 22:07:20 -07:00
angel 9de51c3925 installed logger 2026-01-11 16:54:50 -07:00
angel a7c8fe4d64 first drafts for inventory sync page 2026-01-09 18:03:54 -07:00
angel cc74842e63 implement auth using Auth0 2025-12-29 23:49:23 -07:00
angel c9100383e4 account page stubbed: link to etsy sign up 2025-12-29 06:06:13 -07:00
angel 61f9afb39c etsy: removed generated api server and spec 2025-12-28 16:05:53 -07:00
angel ad4e86fca7 etsy: generated api client 2025-12-28 15:06:43 -07:00
angel 051cf1da5d prototype report page 2025-12-28 14:38:06 -07:00
angel 3823fa7331 raw_store_events store started 2025-12-24 00:55:22 -07:00
angel cdbc08dea2 site and webhooks packages stubbed 2025-12-23 22:35:38 -07:00