We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7434912 commit ac43ee5Copy full SHA for ac43ee5
lib/wasi/tests/runners.rs
@@ -49,17 +49,9 @@ mod wasi {
49
.with_args(["--version"])
50
.run_command("wat2wasm", &pkg, Arc::new(rt))
51
});
52
- let err = handle.join().unwrap().unwrap_err();
+ let result = handle.join().unwrap();
53
54
- let runtime_error = err
55
- .chain()
56
- .find_map(|e| e.downcast_ref::<WasiError>())
57
- .expect("Couldn't find a WasiError");
58
- let exit_code = match runtime_error {
59
- WasiError::Exit(code) => *code,
60
- other => unreachable!("Something else went wrong: {:?}", other),
61
- };
62
- assert!(exit_code.is_success());
+ assert!(result.is_ok());
63
}
64
65
#[tokio::test]
0 commit comments