Skip to content

Commit 5bb90a9

Browse files
Allow 302 status for Twitter integration test (#400)
1 parent 301b779 commit 5bb90a9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/mint/http2/integration_test.exs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,9 @@ defmodule HTTP2.IntegrationTest do
183183

184184
assert {:ok, %HTTP2{} = conn, responses} = receive_stream(conn)
185185

186-
assert [{:status, ^ref, 200}, {:headers, ^ref, headers} | rest] = responses
186+
assert [{:status, ^ref, status}, {:headers, ^ref, headers} | rest] = responses
187+
assert status in [200, 302]
188+
187189
assert {_, [{:done, ^ref}]} = Enum.split_while(rest, &match?({:data, ^ref, _}, &1))
188190

189191
assert is_list(headers)

0 commit comments

Comments
 (0)