diff --git a/.travis.yml b/.travis.yml index 6a9d48d..ae4ed7a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,6 @@ script: mix test --no-start install: mix deps.get before_install: - mkdir -p vendor/elixir - - wget -q https://github.com/elixir-lang/elixir/releases/download/v0.12.1/v0.12.1.zip && unzip -qq v0.12.1.zip -d vendor/elixir + - wget -q https://github.com/elixir-lang/elixir/releases/download/v0.12.3/v0.12.3.zip && unzip -qq v0.12.3.zip -d vendor/elixir - export PATH="$PATH:$PWD/vendor/elixir/bin" - export MIX_ENV=test diff --git a/mix.exs b/mix.exs index 74e9d6d..524216a 100644 --- a/mix.exs +++ b/mix.exs @@ -5,7 +5,7 @@ defmodule Httparrot.Mixfile do [ app: :httparrot, version: "0.0.2", name: "HTTParrot", - elixir: "~> 0.11.2 or ~> 0.12.0", + elixir: "~> 0.12.3", deps: deps(Mix.env) ] end diff --git a/test/stream_handler_test.exs b/test/stream_handler_test.exs index 684173b..de0e200 100644 --- a/test/stream_handler_test.exs +++ b/test/stream_handler_test.exs @@ -55,7 +55,7 @@ defmodule HTTParrot.StreamHandlerTest do assert {{:chunked, func}, :req2, nil} = get_json(:req1, 2) assert is_function(func) - send_func = fn(body) -> self <- {:chunk, body} end + send_func = fn(body) -> send(self, {:chunk, body}) end func.(send_func) assert_receive {:chunk, :json1}