Skip to content

trillium-testing-v0.4.1

Choose a tag to compare

@jbr jbr released this 16 Mar 21:42
· 816 commits to main since this release
b28ac7c

This release changes all calls to block_on when reading request or response bodies to futures_lite::future::block_on, allowing it to be called within a tokio runtime. Although this would be undesirable for async performance in a production system, it's find for single-task testing.

Additionally, TestConn::run_async is now public, allowing for testing within an async test harness such as #[tokio::test] or #[async_std::test].