Fix error return expectation in command test

This commit is contained in:
Mickael Remond 2016-08-01 09:28:54 +02:00
parent c5c394e929
commit 4982639d05
No known key found for this signature in database
GPG Key ID: E6F6045D79965AA3
1 changed files with 1 additions and 1 deletions

View File

@ -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)