Skip to content

Commit a7c2620

Browse files
committed
refactor: use insta::assert_snapshot
1 parent 47999da commit a7c2620

File tree

1 file changed

+4
-1
lines changed
  • host/tests/integration_tests

1 file changed

+4
-1
lines changed

host/tests/integration_tests/rust.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,5 +107,8 @@ async fn test_invoke_with_args_returns_error() {
107107

108108
assert!(result.is_err());
109109
let error = result.unwrap_err();
110-
assert!(error.to_string().contains("synchronous invocation of WasmScalarUdf is not supported, use invoke_async_with_args instead"));
110+
insta::assert_snapshot!(
111+
error,
112+
@r"This feature is not implemented: synchronous invocation of WasmScalarUdf is not supported, use invoke_async_with_args instead"
113+
);
111114
}

0 commit comments

Comments
 (0)