Test that server will disconnect websocket upon token revocation
This commit is contained in:
parent
eb42e90c4f
commit
3522852c61
2 changed files with 23 additions and 1 deletions
|
|
@ -41,6 +41,12 @@ defmodule Pleroma.Integration.WebsocketClient do
|
|||
{:ok, state}
|
||||
end
|
||||
|
||||
@impl true
|
||||
def handle_disconnect(conn_status, state) do
|
||||
send(state.sender, {:close, conn_status})
|
||||
{:ok, state}
|
||||
end
|
||||
|
||||
@doc false
|
||||
@impl true
|
||||
def handle_info({:text, msg}, state) do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue