diff --git a/lib/ex_cmd/process.ex b/lib/ex_cmd/process.ex index 799200d..001607e 100644 --- a/lib/ex_cmd/process.ex +++ b/lib/ex_cmd/process.ex @@ -194,8 +194,8 @@ defmodule ExCmd.Process do ``` # sleep command does not watch for stdin or stdout, so closing the # pipe does not terminate the sleep command. - iex> {:ok, p} = Process.start_link(~w(sleep 100000000), log: :stderr) # sleep indefinitely - iex> Process.await_exit(p, 1000) # ensure `await_exit` finish within `1000ms`. By default it waits for 5s + iex> {:ok, p} = Process.start_link(~w(sleep 100000000)) # sleep indefinitely + iex> Process.await_exit(p, 2000) # ensure `await_exit` finish within `2000ms`. By default it waits for 5s {:error, :killed} # command exit due to SIGTERM ``` diff --git a/test/ex_cmd/process_test.exs b/test/ex_cmd/process_test.exs index 1df680d..d438d88 100644 --- a/test/ex_cmd/process_test.exs +++ b/test/ex_cmd/process_test.exs @@ -202,7 +202,7 @@ defmodule ExCmd.ProcessTest do end test "if await_exit kills the program" do - {:ok, s} = Process.start_link(~w(sleep 10000), log: :stderr) + {:ok, s} = Process.start_link(~w(sleep 10000)) assert_killed(Process.await_exit(s, 1000)) end diff --git a/test/test_helper.exs b/test/test_helper.exs index d179b8c..8754999 100644 --- a/test/test_helper.exs +++ b/test/test_helper.exs @@ -8,5 +8,5 @@ end ) -Logger.configure(level: :debug) +Logger.configure(level: :warning) ExUnit.start(capture_log: false)