From 414919b1dcf62a413a39801b94ceeb9eb0a62e3e Mon Sep 17 00:00:00 2001 From: Philipp Tessenow Date: Sat, 9 Nov 2024 19:37:24 +0100 Subject: [PATCH] be less picky in matching error reason source file path --- test/wasi_test.exs | 4 +++- test/wasmex_test.exs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/wasi_test.exs b/test/wasi_test.exs index e10caba..0de9211 100644 --- a/test/wasi_test.exs +++ b/test/wasi_test.exs @@ -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 = diff --git a/test/wasmex_test.exs b/test/wasmex_test.exs index 2d43cb6..928988a 100644 --- a/test/wasmex_test.exs +++ b/test/wasmex_test.exs @@ -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