Skip to content

net: Fix OnionAddr proptest.#602

Merged
Boog900 merged 1 commit intomainfrom
onion_addr_test_fix
Apr 22, 2026
Merged

net: Fix OnionAddr proptest.#602
Boog900 merged 1 commit intomainfrom
onion_addr_test_fix

Conversation

@SyntheticBird45
Copy link
Copy Markdown
Member

What

  • Added two new tests parse_random_valid_onion_address and parse_random_valid_onion_address_w_port.
  • Fixed the two *invalid_onion_address* tests.

Why

We were trying to make a correct syntax for a test that was meant to invalidate bad syntax. By accident the proptest string regex was not written correctly, resulting in broken onion addresses and therefore the tests succeeding.

I'm confused on how this situation happened in the first place but it is what it is.

@github-actions github-actions Bot added the A-net Area: Related to networking. label Apr 22, 2026
- Added two new tests `parse_random_valid_onion_address` and
  `parse_random_valid_onion_address_w_port`.
- Fixed the two `*invalid_onion_address*` tests.

The proptest syntax was invalid and we were trying to create a correct
syntax for a test of invalid inputs. I don't know who is the author but
this is quite stupid. They should be ashamed of themselves.
Truly. Sincerely. Honestly. Frankly. Really?

Git blame is left as an exercise for the reader.
@Boog900 Boog900 merged commit d47e516 into main Apr 22, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-net Area: Related to networking.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants