summaryrefslogtreecommitdiff
path: root/crates/tor-rtmock
Commit message (Collapse)AuthorAgeFilesLines
* Bump every crate by one patch version.Nick Mathewson2021-11-291-3/+3
|
* add semicolons if nothing returnedDaniel Eades2021-11-252-3/+4
|
* Replace all println/eprintln calls outside of arti CLI with trace.Nick Mathewson2021-11-043-22/+29
|
* Bump all crate versions to 0.0.1Nick Mathewson2021-10-291-3/+3
|
* Fix some clippy-nightly warnings.Nick Mathewson2021-10-262-9/+12
| | | | These are my fault; I merged the wrong version of !102. :p
* Overhaul the way WaitFor and the MockSleepProvider worketa2021-10-262-40/+255
| | | | | | | | | | | | | | | | | | | | | Instead of racily advancing time forward, this commit attempts to rework how WaitFor works, such that it makes advances when all sleeper futures that have been created have been polled (by handing the MockSleepRuntime a Waker with which to wake up the WaitFor). The above described mechanics work well enough for the double timeout test, but fail in the presence of code that spawns asynchronous / background tasks that must make progress before time is advanced for the test to work properly. In order to deal with these cases, a set of APIs are introduced in order to block time from being advanced until some code has run, and a carveout added in order to permit small advances in time where required. (In some cases, code needed to be hacked up a bit in order to be made properly testable using these APIs; the `MockablePlan` trait included in here is somewhat unfortunate.) This should fix arti#149.
* enable checked_conversions lint.Nick Mathewson2021-10-091-0/+1
|
* fix/silence clippy lints in test modulesDaniel Eades2021-09-084-16/+19
|
* Move all crates into a `crates` subdirectory.Nick Mathewson2021-08-279-0/+1917
This will cause some pain for now, but now is really the best time to do this kind of thing.