aboutsummaryrefslogtreecommitdiff
path: root/hotline/user_test.go
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2026-03-14 15:41:17 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2026-03-14 15:41:17 -0700
commitb40b4ccdea356807f82e5a33371ca59832ecac8a (patch)
tree59d7141660f808a88ccb74c08ca65540b9048ff7 /hotline/user_test.go
parent2cf9f33ef42188dd35eaf4905cd2f05557aecca1 (diff)
Fix error handling and write-ordering anti-patterns
Return errors to clients on write failures instead of silently succeeding. Add rollback logic to BanFile and ThreadedNewsYAML mutations so in-memory state is restored when persistence fails. Extract error message constants and add comprehensive tests for error paths and rollback behavior.
Diffstat (limited to 'hotline/user_test.go')
0 files changed, 0 insertions, 0 deletions