Skip to content

Commit a222b12

Browse files
committed
chore: mix format
1 parent 16324e7 commit a222b12

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/test_doubles/mock_httpoison.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ defmodule Vaultex.Test.TestDoubles.MockHTTPoison do
144144
{:error, %HTTPoison.Error{id: nil, reason: :econnrefused}}
145145

146146
key |> String.contains?("ssl") ->
147-
{:error, %HTTPoison.Error{id: nil, reason: {:tls_alert, 'unknown ca'}}}
147+
{:error, %HTTPoison.Error{id: nil, reason: {:tls_alert, ~c"unknown ca"}}}
148148

149149
:else ->
150150
{:ok, %{body: Jason.encode(%{errors: ["Not Authenticated"]}, [])}}

test/vaultex_test.exs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,10 @@ defmodule VaultexTest do
113113
test "Authentication of self signed ssl causes an exception" do
114114
assert Vaultex.Client.auth(:token, {"ssl"}) ==
115115
{:error,
116-
["Bad response from vault [http://localhost:8200/v1/]", {:tls_alert, 'unknown ca'}]}
116+
[
117+
"Bad response from vault [http://localhost:8200/v1/]",
118+
{:tls_alert, ~c"unknown ca"}
119+
]}
117120
end
118121

119122
test "Authentication of arbitrary method and credentials" do

0 commit comments

Comments
 (0)