We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0cb3fbb commit b8e53e8Copy full SHA for b8e53e8
tests/all/cli_tests.rs
@@ -2070,13 +2070,16 @@ after empty
2070
#[test]
2071
fn cli_hello_stdout() -> Result<()> {
2072
println!("{CLI_HELLO_STDOUT_COMPONENT}");
2073
- run_wasmtime(&[
+ let output = run_wasmtime(&[
2074
"run",
2075
"-Wcomponent-model",
2076
- CLI_HELLO_STDOUT_COMPONENT,
2077
"--invoke",
2078
"run()",
+ CLI_HELLO_STDOUT_COMPONENT,
2079
])?;
2080
+ // First this component prints "hello world", then the invoke
2081
+ // result is printed as "ok".
2082
+ assert_eq!(output, "hello world\nok\n");
2083
Ok(())
2084
}
2085
0 commit comments