MCPcopy Index your code
hub / github.com/assert-rs/assert_cmd / timeout_example

Function timeout_example

tests/examples.rs:19–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17
18#[test]
19fn timeout_example() {
20 use assert_cmd::Command;
21
22 let assert = Command::cargo_bin("bin_fixture")
23 .unwrap()
24 .timeout(std::time::Duration::from_secs(1))
25 .env("sleep", "100")
26 .assert();
27 assert.failure();
28}

Callers

nothing calls this directly

Calls 6

cargo_binFunction · 0.85
envMethod · 0.80
timeoutMethod · 0.80
failureMethod · 0.80
assertMethod · 0.45
unwrapMethod · 0.45

Tested by

no test coverage detected