summaryrefslogtreecommitdiff
path: root/crates/tor-netdir/src/testnet.rs
Commit message (Collapse)AuthorAgeFilesLines
* tor-netdir: Update tests to parse the descriptor, make test consensus ↵Gabriela Moldovan2023-05-031-8/+17
| | | | | | lifetime configurable. Signed-off-by: Gabriela Moldovan <[email protected]>
* tor-netdir: testnet: Make all non-guard non-exits be hsdirsIan Jackson2023-04-051-1/+1
|
* Allow clippy::unchecked_duration_subtraction in testsNick Mathewson2023-01-271-0/+1
| | | | | This panics on error, and we're fine with a panic on misbehavior in tests.
* test lint blocks: Add many many automaticallyIan Jackson2022-12-121-0/+9
| | | | | This is precisely the result of running the rune in maint/adhoc-add-lint-blocks.
* fix clippy::needless_borrowtrinity-1686a2022-09-101-1/+1
|
* tor-netdir: testnet: construct_custom_netdir_with_params: Fix docIan Jackson2022-08-171-1/+2
| | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/657#note_2826168
* tor-netdir, testnet: Provide construct_custom_netdir_with_paramsIan Jackson2022-08-161-2/+16
| | | | | We're going to want this for testing netdirs with padding parameters that diff ere from the spec's default.
* tor-netdir: testnet: Make construct_netdir infallibleIan Jackson2022-06-131-2/+2
| | | | | This is a *lot* of unwraps. The function takes no parameters and is used only for testing. It ought to be infallible.
* Remove allow(clippy::disallowed_methods) lint.Nick Mathewson2022-03-301-1/+0
|
* use wallclock where possible in teststrinity-1686a2022-02-261-0/+1
|
* tor-netdir: Split testnet errors into a new typeNick Mathewson2022-02-151-6/+9
| | | | | There's no reason to have the test-network-construction code share an error enum with the main netdir code.
* Merge remote-tracking branch 'origin/mr/151'Nick Mathewson2021-11-301-12/+0
|\
| * Remove unused tap_onion_key and tap_keyNeel Chauhan2021-11-281-12/+0
| |
* | add semicolons if nothing returnedDaniel Eades2021-11-251-1/+1
|/
* tor_netdir::testnet: Correct a documentation error.Nick Mathewson2021-09-291-1/+1
|
* Move all crates into a `crates` subdirectory.Nick Mathewson2021-08-271-0/+238
This will cause some pain for now, but now is really the best time to do this kind of thing.