diff options
author | kaniini <ariadne@dereferenced.org> | 2019-07-22 19:54:22 +0000 |
---|---|---|
committer | kaniini <ariadne@dereferenced.org> | 2019-07-22 19:54:22 +0000 |
commit | a042a7ac6d65dca3e19e6c4ddd65d2010e94aeba (patch) | |
tree | 7cbef566f06d1cd23f15329eda49263559c36ba9 /test/plugs/authentication_plug_test.exs | |
parent | 2951714429f3ea2d6aef81cbe8edc3dcd6dff6e6 (diff) | |
parent | 9340896c9ee43dff26e6f11c417e4f6dccdd13de (diff) | |
download | pleroma-a042a7ac6d65dca3e19e6c4ddd65d2010e94aeba.tar.gz pleroma-a042a7ac6d65dca3e19e6c4ddd65d2010e94aeba.zip |
Merge branch 'tests/skip-some-tests-on-mac' into 'develop'
Exclude tests that use :crypt.crypt/2 on macOS
See merge request pleroma/pleroma!1470
Diffstat (limited to 'test/plugs/authentication_plug_test.exs')
-rw-r--r-- | test/plugs/authentication_plug_test.exs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/plugs/authentication_plug_test.exs b/test/plugs/authentication_plug_test.exs index 7ca045616..f7f8fd9f3 100644 --- a/test/plugs/authentication_plug_test.exs +++ b/test/plugs/authentication_plug_test.exs @@ -9,7 +9,6 @@ defmodule Pleroma.Plugs.AuthenticationPlugTest do alias Pleroma.User import ExUnit.CaptureLog - import Mock setup %{conn: conn} do user = %User{ @@ -67,13 +66,12 @@ defmodule Pleroma.Plugs.AuthenticationPlugTest do refute AuthenticationPlug.checkpw("test-password1", hash) end + @tag :skip_on_mac test "check sha512-crypt hash" do hash = "$6$9psBWV8gxkGOZWBz$PmfCycChoxeJ3GgGzwvhlgacb9mUoZ.KUXNCssekER4SJ7bOK53uXrHNb2e4i8yPFgSKyzaW9CcmrDXWIEMtD1" - with_mock :crypt, crypt: fn _password, password_hash -> password_hash end do - assert AuthenticationPlug.checkpw("password", hash) - end + assert AuthenticationPlug.checkpw("password", hash) end test "it returns false when hash invalid" do |