trillium-rs / trillium

Trillium is a composable toolkit for building internet applications with async rust

Home Page:https://trillium.rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug report for `trillium-http`: Tests fail when not specifying any features

divergentdave opened this issue · comments

Describe the bug
The library-level doctest in trillium-http creates a TCP server using async-net, and connects to it using trillium_testing::ClientConfig. This works when any of the features trillium-testing/tokio, trillium-testing/smol, or trillium-testing/async-std are enabled, but fails when none of these features are enabled, because it uses the in-memory RuntimelessClientConfig, which does not touch the network. The CI runs tests with each of these features enabled, but not with default features.

To Reproduce
Steps to reproduce the behavior:

  1. Run cargo test