Skip to content

Commit

Permalink
Add some dialyzer ignore flags for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Azolo committed Feb 8, 2018
1 parent cb615af commit 1fe21f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/support/test_server.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
defmodule WebSockex.TestServer do
Module.register_attribute(__MODULE__, :dialyzer, persist: true)
use Plug.Router

@certfile Path.join([__DIR__, "priv", "websockex.cer"])
Expand Down Expand Up @@ -167,6 +168,7 @@ defmodule WebSockex.TestSocket do
end
def websocket_info(_, req, state), do: {:ok, req, state}

@dialyzer {:nowarn_function, immediate_reply: 1}
defp immediate_reply(req) do
socket = elem(req, 1)
transport = elem(req, 2)
Expand Down

0 comments on commit 1fe21f6

Please sign in to comment.