The client address list test for the last-seen time keeps a margin from the rounding boundary #395

Merged
claude merged 2 commits from feature/391-relative-time-spec-margin into develop 2026-11-12 17:51:43 -05:00
Owner

The client address list spec keeps its "last seen" fixture 30 seconds clear of the rounding boundary, like the client list spec. Test code only.

  • Change: the fixture device was last seen two minutes and 30 seconds ago instead of exactly two minutes, so 'Last 2 min ago' holds whichever of the fixture and the component reads the clock first.
  • Comments: both specs now state the real read order. The address list component reads its clock right after the fixture; the client list component takes its clock first and reads the fixture while it maps the rows.
  • Audit: no other *.spec.ts computes an instant from the current time on a rounding boundary.

Verified

  • npm run lint and npm run format:check clean; both specs pass (27 of 27).
  • Verifier: accepted the change; its finding (the first comment gave a wrong reason) is fixed in the second commit.

Closes #391

🤖 Generated with Claude Code

https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK

The client address list spec keeps its "last seen" fixture 30 seconds clear of the rounding boundary, like the client list spec. Test code only. - **Change:** the fixture device was last seen two minutes and 30 seconds ago instead of exactly two minutes, so `'Last 2 min ago'` holds whichever of the fixture and the component reads the clock first. - **Comments:** both specs now state the real read order. The address list component reads its clock right after the fixture; the client list component takes its clock first and reads the fixture while it maps the rows. - **Audit:** no other `*.spec.ts` computes an instant from the current time on a rounding boundary. **Verified** - `npm run lint` and `npm run format:check` clean; both specs pass (27 of 27). - Verifier: accepted the change; its finding (the first comment gave a wrong reason) is fixed in the second commit. Closes #391 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
The fixture sits 30 seconds past two minutes, so a clock read slightly before or after the component's still gives "2 min ago".

Closes #391

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
The last-seen fixture comments in the client list specs state the order in which the clock and the getter are read
All checks were successful
Build / Pipeline (pull_request) Successful in 0s
Build / Pack and Push NuGet Packages (dhcp) (pull_request) Successful in -2m6s
Build / Pack and Push NuGet Packages (dns-core) (pull_request) Successful in -2m4s
Build / Pack and Push NuGet Packages (dns-server) (pull_request) Successful in -2m8s
Build / Pack and Push NuGet Packages (common) (push) Successful in -2m27s
Build / Pack and Push NuGet Packages (dhcp) (push) Successful in -2m11s
Build / Pack and Push NuGet Packages (dns-core) (push) Successful in -2m6s
Build / Build Binary (linux-amd64) (pull_request) Successful in -1m10s
Build / Build Binary (linux-arm64) (pull_request) Successful in -59s
Build / Build Binary (macos-amd64) (pull_request) Successful in -1m2s
Build / Stage Draft Release (push) Successful in -2m35s
Build / Pack and Push NuGet Packages (dns-server) (push) Successful in -2m4s
Build / Build Binary (macos-arm64) (pull_request) Successful in -1m4s
Build / Build Binary (windows-amd64) (pull_request) Successful in -1m19s
Build / Smoke Test the Windows Binary (pull_request) Successful in 15s
Build / Build Binary (linux-amd64) (push) Successful in -1m14s
Build / Build Binary (linux-arm64) (push) Successful in -1m8s
Build / Build Binary (macos-amd64) (push) Successful in -1m9s
Build / Build Binary (macos-arm64) (push) Successful in -1m6s
Build / Build Arch Linux Packages (pull_request) Successful in -2m8s
Build / Build Binary (windows-amd64) (push) Successful in -1m8s
Build / Build and Push Image (pull_request) Successful in -2m31s
Build / Smoke Test the Windows Binary (push) Successful in 15s
Build / Build Arch Linux Packages (push) Successful in -2m22s
Build / Build and Test Deb and RPM Packages (pull_request) Successful in -22s
Build / Build and Push Image (push) Successful in -2m31s
Build / Publish Release (pull_request) Successful in -2m34s
Build / Build and Test Deb and RPM Packages (push) Successful in -6s
Build / Publish Release (push) Successful in -2m30s
Build / Pipeline (push) Successful in 0s
768fd1b08d
Refs #391

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
claude merged commit 5c9b5af0c0 into develop 2026-11-12 17:51:43 -05:00
claude deleted branch feature/391-relative-time-spec-margin 2026-11-12 17:51:43 -05:00
Sign in to join this conversation.
No reviewers
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lantea-one/ninlil!395
No description provided.