kafka-client-engine 0.0.1

Execution and driver-integration layer for the native Kafka client
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Assigned-consumer wake errors preserve their concrete I/O context.

use std::io;

use super::wake::AssignedConsumerShardWakeError;

#[test]
fn assigned_wake_error_names_the_concrete_domain() {
    let error = AssignedConsumerShardWakeError::from_io(io::Error::new(
        io::ErrorKind::BrokenPipe,
        "test wake closed",
    ));

    assert_eq!(
        error.to_string(),
        "assigned-consumer shard wake failed: test wake closed"
    );
}