Skip to content

Commit 34c3676

Browse files
committed
Use .unwrap when test is expected to pass
1 parent ad0e177 commit 34c3676

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/test-macros/src/wasmtime_test.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ fn expand(test_config: &TestConfig, func: Fn) -> Result<TokenStream> {
292292
if wasmtime_test_util::wast::Compiler::#strategy_ident.should_fail(&#test_config) {
293293
assert!(result.is_err());
294294
} else {
295-
assert!(result.is_ok());
295+
result.unwrap();
296296
}
297297
}
298298
};

0 commit comments

Comments
 (0)