aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMickael Remond <mremond@process-one.net>2016-08-01 09:28:54 +0200
committerMickael Remond <mremond@process-one.net>2016-08-01 09:28:54 +0200
commit4982639d054814270e566dbcef00247fbb933c12 (patch)
treecce5a05bd065e86323687a06b15e97dad06e84e4 /test
parentFix HTTP process return formatting (diff)
Fix error return expectation in command test
Diffstat (limited to 'test')
-rw-r--r--test/ejabberd_commands_mock_test.exs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ejabberd_commands_mock_test.exs b/test/ejabberd_commands_mock_test.exs
index 439a3c1d3..9d33d7573 100644
--- a/test/ejabberd_commands_mock_test.exs
+++ b/test/ejabberd_commands_mock_test.exs
@@ -174,7 +174,7 @@ defmodule EjabberdCommandsMockTest do
# default version is latest one
assert :result3 == :ejabberd_commands.execute_command(command_name, [])
# no such command in APIv0
- assert :unknown_command ==
+ assert {:error, :unknown_command} ==
catch_throw :ejabberd_commands.execute_command(command_name, [], 0)
assert :result1 == :ejabberd_commands.execute_command(command_name, [], 1)
assert :result1 == :ejabberd_commands.execute_command(command_name, [], 2)