Skip to content

Commit

Permalink
Merge pull request #382 from sleipnir/fix/integration-tests
Browse files Browse the repository at this point in the history
Fix. Integration client tests
  • Loading branch information
sleipnir authored Jul 12, 2024
2 parents dce082c + 87279fe commit 55f5d1a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/grpc/integration/server_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ defmodule GRPC.Integration.ServerTest do
]
)

assert_receive {:gun_response, ^conn_pid, ^stream_ref, :fin, ^status, _headers}
assert_receive {:gun_up, ^conn_pid, :http}
end
end)
end
Expand Down Expand Up @@ -459,7 +459,7 @@ defmodule GRPC.Integration.ServerTest do
{"content-type", "application/json"}
])

assert_receive {:gun_response, ^conn_pid, ^stream_ref, :nofin, 200, _headers}
assert_receive {:gun_up, ^conn_pid, :http}
assert {:ok, body} = :gun.await_body(conn_pid, stream_ref)

assert %{
Expand Down Expand Up @@ -571,6 +571,7 @@ defmodule GRPC.Integration.ServerTest do
Jason.encode!(payload)
)

assert_receive {:gun_up, ^conn_pid, :http}
assert_receive {:gun_response, ^conn_pid, ^stream_ref, :nofin, 200, _headers}
assert {:ok, body} = :gun.await_body(conn_pid, stream_ref)

Expand All @@ -582,6 +583,7 @@ defmodule GRPC.Integration.ServerTest do
])

assert_receive {:gun_response, ^conn_pid, ^stream_ref, :nofin, 200, _headers}

assert {:ok, body} = :gun.await_body(conn_pid, stream_ref)

assert %{
Expand Down

0 comments on commit 55f5d1a

Please sign in to comment.