Skip to content

fix(test): use regex to count redacted MACs#119

Merged
kwschulz merged 1 commit intomainfrom
fix/mac-redaction-test
Feb 25, 2026
Merged

fix(test): use regex to count redacted MACs#119
kwschulz merged 1 commit intomainfrom
fix/mac-redaction-test

Conversation

@kwschulz
Copy link
Copy Markdown
Collaborator

Summary

  • Fix flaky test_handles_multiple_macs assertion that counted 02: substrings instead of full MAC patterns
  • Redacted MACs can contain 02: in middle octets (e.g., 02:e8:6e:ac:02:e6), causing count of 4 instead of 3

Test plan

  • Test passes locally
  • CI green

🤖 Generated with Claude Code

The "02:" prefix can appear in middle octets of redacted MAC hashes
(e.g., 02:e8:6e:ac:02:e6), causing a count of 4 instead of 3.
Match full MAC patterns instead.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@kwschulz kwschulz merged commit cdb3384 into main Feb 25, 2026
10 checks passed
@kwschulz kwschulz deleted the fix/mac-redaction-test branch February 25, 2026 22:57
kwschulz added a commit that referenced this pull request Apr 6, 2026
#119)

The "02:" prefix can appear in middle octets of redacted MAC hashes
(e.g., 02:e8:6e:ac:02:e6), causing a count of 4 instead of 3.
Match full MAC patterns instead.

Co-authored-by: Ken Schulz <kwschulz@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant