]> granicus.if.org Git - ejabberd/commitdiff
Fix error return expectation in command test
authorMickael Remond <mremond@process-one.net>
Mon, 1 Aug 2016 07:28:54 +0000 (09:28 +0200)
committerMickael Remond <mremond@process-one.net>
Mon, 1 Aug 2016 07:28:54 +0000 (09:28 +0200)
test/ejabberd_commands_mock_test.exs

index 439a3c1d3c9fc40cb3f56919d0019ad644aa994b..9d33d757318a8574f5073d18f51b967f04674e28 100644 (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)