       refute_receive :bye, 1000
 
   """
-  defmacro refute_receive(
-             pattern,
-             timeout \\ Application.fetch_env!(:ex_unit, :refute_receive_timeout),
-             failure_message \\ nil
-           ) do
+  defmacro refute_receive(pattern, timeout \\ nil, failure_message \\ nil) do
     do_refute_receive(pattern, timeout, failure_message)
   end
 

    receive_clause = refute_receive_clause(pattern, failure_message)

    quote do
      receive do
        unquote(receive_clause)
      after
        unquote(timeout) -> false
      end
    end
  end

      assert_receive {:count, ^x}

  """
  defmacro assert_receive(pattern, timeout \\ nil, failure_message \\ nil) do
    code = escape_quoted(:assert_receive, [], pattern)
    assert_receive(pattern, timeout, failure_message, __CALLER__, code)
  end
