Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F114296
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/test/support/adapter_case.ex b/test/support/adapter_case.ex
index 35f67d6..3e54940 100644
--- a/test/support/adapter_case.ex
+++ b/test/support/adapter_case.ex
@@ -1,19 +1,13 @@
defmodule Tesla.AdapterCase do
defmacro __using__(adapter: adapter) do
quote do
@adapter unquote(adapter)
- # Needed for SSL test with certificate verification
- if @adapter == Tesla.Adapter.Ibrowse do
- @http "http://0.0.0.0:#{Application.get_env(:httparrot, :http_port)}"
- @https "https://0.0.0.0:#{Application.get_env(:httparrot, :https_port)}"
- else
- @http "http://localhost:#{Application.get_env(:httparrot, :http_port)}"
- @https "https://localhost:#{Application.get_env(:httparrot, :https_port)}"
- end
+ @http "http://localhost:#{Application.get_env(:httparrot, :http_port)}"
+ @https "https://localhost:#{Application.get_env(:httparrot, :https_port)}"
defp call(env, opts \\ []) do
@adapter.call(env, opts)
end
end
end
end
diff --git a/test/tesla/adapter/ibrowse_test.exs b/test/tesla/adapter/ibrowse_test.exs
index e50f452..1737572 100644
--- a/test/tesla/adapter/ibrowse_test.exs
+++ b/test/tesla/adapter/ibrowse_test.exs
@@ -1,9 +1,13 @@
defmodule Tesla.Adapter.IbrowseTest do
use ExUnit.Case
use Tesla.AdapterCase, adapter: Tesla.Adapter.Ibrowse
+
+ @http "http://0.0.0.0:#{Application.get_env(:httparrot, :http_port)}"
+ @https "https://0.0.0.0:#{Application.get_env(:httparrot, :https_port)}"
+
use Tesla.AdapterCase.Basic
use Tesla.AdapterCase.Multipart
use Tesla.AdapterCase.StreamRequestBody
use Tesla.AdapterCase.SSL
end
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Tue, Nov 26, 1:52 AM (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40170
Default Alt Text
(1 KB)
Attached To
Mode
R28 tesla
Attached
Detach File
Event Timeline
Log In to Comment