Commit c6a1bcaa authored by Nick Mathewson's avatar Nick Mathewson 🥔
Browse files

circmgr: Split request_timeout test into two.

There seems to be some issue here with the new WaitFor code,
where using the same MockSleepProvider with both of these wait_for()
calls gives questionable behavior under some circumstances (like
when running under Tarpaulin with the wrong set of flags).
parent b0fd7cff
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1436,6 +1436,13 @@ mod test {
                .await;

            assert!(matches!(c1, Err(Error::RequestFailed(_))));
        });
    }

    #[test]
    fn request_timeout2() {
        tor_rtcompat::test_with_one_runtime!(|rt| async {
            let rt = MockSleepRuntime::new(rt);

            // Now try a more complicated case: we'll try to get things so
            // that we wait for a little over our predicted time because