Skip to content

Commit

Permalink
be less picky in matching error reason source file path
Browse files Browse the repository at this point in the history
  • Loading branch information
tessi committed Nov 9, 2024
1 parent b336f97 commit 414919b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion test/wasi_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ defmodule WasiTest do
wasi = %WasiOptions{
args: ["wasmex", "list_files", "aliased_src"],
stdout: stdout,
preopen: [%PreopenOptions{path: "test/fixture_projects/wasi_test/src", alias: "aliased_src"}]
preopen: [
%PreopenOptions{path: "test/fixture_projects/wasi_test/src", alias: "aliased_src"}
]
}

instance =
Expand Down
2 changes: 1 addition & 1 deletion test/wasmex_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ defmodule WasmexTest do
assert {:error, reason} = Wasmex.call_function(pid, :divide, [1, 0])

# contains source file and line number
assert reason =~ "wasmex/test/wasm_test/src/lib.rs:75:5"
assert reason =~ "wasm_test/src/lib.rs:75:5"
end
end

Expand Down

0 comments on commit 414919b

Please sign in to comment.