tokio-rs / turmoil

Add hardship to your tests
MIT License
795 stars 50 forks source link

Treat partitions as unreachable hosts #193

Open brandonpike opened 3 weeks ago

brandonpike commented 3 weeks ago

Instead of returning ErrorKind::ConnectionRefused for all deliver failures, this commit makes the following differentiations:

  1. Links that are not found now return ErrorKind::Other("host unreachable")
  2. Links that have active partitions now return ErrorKind::Other("host unreachable")

We use ErrorKind::Other in this commit while ErrorKind::HostUnreachable is pending stabilization. (https://github.com/rust-lang/rust/issues/86442). Note: stabilization is scheduled for 1.83.0 on November 28, 2024

Fixes #169