From 1ff0f34540cb06f9f34a1f36e5b847dd64d6a8d1 Mon Sep 17 00:00:00 2001 From: akash-akya Date: Wed, 24 Jan 2024 13:17:57 +0530 Subject: [PATCH] Ignore additional output in the stdout while asserting --- test/exile/process_test.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/exile/process_test.exs b/test/exile/process_test.exs index 9dde351..fdb8909 100644 --- a/test/exile/process_test.exs +++ b/test/exile/process_test.exs @@ -227,7 +227,7 @@ defmodule Exile.ProcessTest do {:ok, os_pid} = Process.os_pid(s) assert os_process_alive?(os_pid) - assert {:ok, "ignored signals\n"} = Process.read(s) + assert {:ok, "ignored signals\n" <> _} = Process.read(s) # attempt to kill the process after 100ms assert {:ok, 137} = Process.await_exit(s, 100)