]> granicus.if.org Git - ejabberd/commitdiff
Fix elixir tests
authorPaweł Chmielowski <pchmielowski@process-one.net>
Fri, 18 Nov 2016 11:54:06 +0000 (12:54 +0100)
committerPaweł Chmielowski <pchmielowski@process-one.net>
Fri, 18 Nov 2016 11:54:06 +0000 (12:54 +0100)
test/ejabberd_cyrsasl_test.exs

index d9b94929464f20f2882a126609c20b0a86997f47..b85be0f8e234b3501cc419559674a7c7eeff27eb 100644 (file)
@@ -44,12 +44,12 @@ defmodule EjabberdCyrsaslTest do
 
   test "Plain text (correct user wrong pass)", context do
     step1 = :cyrsasl.server_start(context[:cyrstate], "PLAIN", <<0,"user1",0,"badpass">>)
-    assert step1 == {:error, "not-authorized", "user1"}, "got error response"
+    assert step1 == {:error, :"not-authorized", "user1"}
   end
 
   test "Plain text (wrong user wrong pass)", context do
     step1 = :cyrsasl.server_start(context[:cyrstate], "PLAIN", <<0,"nouser1",0,"badpass">>)
-    assert step1 == {:error, "not-authorized", "nouser1"}, "got error response"
+    assert step1 == {:error, :"not-authorized", "nouser1"}
   end
 
   test "Anonymous", context do