use dactor::test_support::conformance::*;
use dactor_coerce::CoerceRuntime;
#[tokio::test]
async fn conformance_multiple_handlers() {
let runtime = CoerceRuntime::new();
test_multiple_handlers(|name, init| runtime.spawn::<ConformanceMultiHandler>(name, init)).await;
}
#[tokio::test]
async fn conformance_message_ordering_under_load() {
let runtime = CoerceRuntime::new();
test_message_ordering_under_load(|name, init| runtime.spawn::<ConformanceCounter>(name, init))
.await;
}
#[tokio::test]
async fn conformance_tell_after_stop() {
let runtime = CoerceRuntime::new();
test_tell_after_stop(|name, init| runtime.spawn::<ConformanceCounter>(name, init)).await;
}
#[tokio::test]
async fn conformance_ask_after_stop() {
let runtime = CoerceRuntime::new();
test_ask_after_stop(|name, init| runtime.spawn::<ConformanceCounter>(name, init)).await;
}
#[tokio::test]
async fn conformance_concurrent_asks() {
let runtime = CoerceRuntime::new();
test_concurrent_asks(|name, init| runtime.spawn::<ConformanceCounter>(name, init)).await;
}
#[tokio::test]
async fn conformance_stream_slow_consumer() {
let runtime = CoerceRuntime::new();
test_stream_slow_consumer(|name, init| runtime.spawn::<ConformanceStreamer>(name, init)).await;
}
#[tokio::test]
async fn conformance_rapid_stop_and_send() {
let runtime = CoerceRuntime::new();
test_rapid_stop_and_send(|name, init| runtime.spawn::<ConformanceCounter>(name, init)).await;
}