MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / doctor_check_fails_without_docker

Function doctor_check_fails_without_docker

e2e/rust/tests/docker_preflight.rs:75–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73/// and report the Docker check as FAILED.
74#[tokio::test]
75async fn doctor_check_fails_without_docker() {
76 let (output, code, elapsed) = run_without_docker(&["doctor", "check"]).await;
77
78 assert_ne!(
79 code, 0,
80 "doctor check should fail when Docker is unavailable, output:\n{output}"
81 );
82
83 assert!(
84 elapsed.as_secs() < 10,
85 "doctor check should complete quickly (took {}s)",
86 elapsed.as_secs()
87 );
88
89 let clean = strip_ansi(&output);
90 assert!(
91 clean.contains("FAILED"),
92 "doctor check should report Docker as FAILED:\n{clean}"
93 );
94}
95
96/// `openshell doctor check` output should include the check label
97/// so the user knows what was tested.

Callers

nothing calls this directly

Calls 2

run_without_dockerFunction · 0.85
strip_ansiFunction · 0.85

Tested by

no test coverage detected