Allow mock in http adapter checking
Some checks are pending
ci/woodpecker/push/woodpecker Pipeline is pending
Some checks are pending
ci/woodpecker/push/woodpecker Pipeline is pending
This commit is contained in:
parent
f752126427
commit
503827a3d9
1 changed files with 5 additions and 0 deletions
|
@ -217,6 +217,10 @@ def check_http_adapter do
|
|||
{Tesla.Adapter.Finch, _} ->
|
||||
:ok
|
||||
|
||||
Tesla.Mock ->
|
||||
# tests do be testing
|
||||
:ok
|
||||
|
||||
_anything_else ->
|
||||
Logger.error("""
|
||||
!!!CONFIG ERROR!!!
|
||||
|
@ -225,6 +229,7 @@ def check_http_adapter do
|
|||
Please ensure you either:
|
||||
\n* do not have any custom value for `:tesla, :adapter`, or
|
||||
\n* have `config :tesla, :adapter, {Tesla.Adapter.Finch, name: MyFinch}`
|
||||
(your current value is #{inspect(http_adapter)})
|
||||
""")
|
||||
|
||||
:error
|
||||
|
|
Loading…
Reference in a new issue