Unverified Commit 4e4baadf authored by Zelda Hessler's avatar Zelda Hessler Committed by GitHub
Browse files

update: increase alternative-async-runtime.rs grace period to 150ms from 100ms (#2141)

parent ee049ed2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -117,8 +117,8 @@ async fn timeout_test(sleep_impl: Arc<dyn AsyncSleep>) -> Result<(), Box<dyn std
        .unwrap_err();

    assert_eq!("TimeoutError(TimeoutError { source: RequestTimeoutError { kind: \"operation timeout (all attempts including retries)\", duration: 500ms } })", format!("{:?}", err));
    // Assert 500ms have passed with a 10ms margin of error
    assert_elapsed!(now, Duration::from_millis(500), Duration::from_millis(100));
    // Assert 500ms have passed with a 150ms margin of error
    assert_elapsed!(now, Duration::from_millis(500), Duration::from_millis(150));

    Ok(())
}