Skip to content

Commit

Permalink
Fix more situations where sockets may be cleaned up already
Browse files Browse the repository at this point in the history
- `:einval` reason instead od `:close`
  • Loading branch information
Azolo committed Aug 31, 2018
1 parent b14fa10 commit f8fbf5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/websockex_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ defmodule WebSockexTest do

:sys.resume(context.pid)

assert_receive {:EXIT, _, %WebSockex.ConnError{original: :closed}}
assert_receive {:EXIT, _, %WebSockex.ConnError{}}
assert_received :caught_disconnect
end
end
Expand Down Expand Up @@ -809,7 +809,7 @@ defmodule WebSockexTest do

:sys.resume(context.pid)

assert_receive {:EXIT, _, %WebSockex.ConnError{original: :closed}}
assert_receive {:EXIT, _, %WebSockex.ConnError{}}
assert_received :caught_disconnect
end
end
Expand Down

0 comments on commit f8fbf5a

Please sign in to comment.