turmoil 0.7.2

Simulation testing framework for distributed systems
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::net::Ipv4Addr;
use turmoil::*;

// This test is not in src/dns.rs since it initalizes a tracing subscriber
// which will persist, and effect other tests in the same file.
#[test]
fn tracing_subscriber_does_not_crash_direct_binds() -> Result {
    tracing_subscriber::fmt().init();
    let mut sim = Builder::new().build();
    sim.client(Ipv4Addr::new(192, 168, 42, 42), async move { Ok(()) });
    sim.run()
}