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
//! Admin-local validation layered over the shared deadline mechanism.

use super::request_timeout_error::{AdminRequestDeadlineError, remaining_timeout_ms};

#[test]
fn shared_deadline_elapsed_fact_enters_the_admin_error_domain() {
    assert_eq!(
        remaining_timeout_ms(
            kafka_client_core::Moment::from_tick(10),
            kafka_client_core::Deadline::from_tick(10),
        ),
        Err(AdminRequestDeadlineError::DeadlineElapsed)
    );
}