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
//! Accepted `CreatePartitions` post-commit fault scenarios.

use super::{
    CreatePartitionsAcceptedFaultKind, CreatePartitionsHostError, handle::accepted_fault_kind,
};

#[test]
fn accepted_wake_failure_never_revokes_operation_ownership() {
    assert_eq!(
        accepted_fault_kind(CreatePartitionsHostError::Wake),
        CreatePartitionsAcceptedFaultKind::Wake
    );
    assert_eq!(
        accepted_fault_kind(CreatePartitionsHostError::MissingTerminal),
        CreatePartitionsAcceptedFaultKind::HostInvariant
    );
}