summaryrefslogtreecommitdiff
path: root/test/support
diff options
context:
space:
mode:
authorArjan Scherpenisse <arjan@scherpenisse.net>2021-02-19 12:49:05 +0100
committerArjan Scherpenisse <arjan@scherpenisse.net>2021-02-20 09:08:56 +0100
commitc9585ce4bd5d066a18389f57b8675c7ffa4fa74a (patch)
tree0da6dd51bbf3142338e4e35c7b447f9672fefccd /test/support
parentMerge branch 'profile_function' into 'master' (diff)
Move defmodule out of client test so each test can be run individually
Diffstat (limited to 'test/support')
-rw-r--r--test/support/client_test.ex9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/support/client_test.ex b/test/support/client_test.ex
new file mode 100644
index 0000000..c9fd2b8
--- /dev/null
+++ b/test/support/client_test.ex
@@ -0,0 +1,9 @@
+defmodule Polyjuice.ClientTest.Httpd.LoggedOut do
+ # just tells the user that they were logged out, no matter what
+ def _matrix(session_id, _env, _input) do
+ :mod_esi.deliver(
+ session_id,
+ 'Status: 401 Unauthorized\r\nContent-Type: application/json\r\n\r\n{"errcode":"M_UNKNOWN_TOKEN","error":"Unknown token"}'
+ )
+ end
+end