canic-host 0.93.7

Host-side build, install, deployment, and fleet-template library for Canic workspaces
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use super::*;
use crate::replica_query::ReplicaQueryError;

#[test]
fn local_bootstrap_status_preserves_direct_replica_failure() {
    let error = root_bootstrap_status(Path::new("."), "local", "not a principal", None)
        .expect_err("local bootstrap query must report its direct replica failure");

    assert!(matches!(
        error.downcast_ref::<ReplicaQueryError>(),
        Some(ReplicaQueryError::Query(_))
    ));
}