Skip to content

Commit

Permalink
Fix. Integration client tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Adriano Santos committed Jul 12, 2024
1 parent c677e75 commit 7dc28cd
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 @@ -375,7 +375,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)

Check warning on line 380 in test/grpc/integration/server_test.exs

View workflow job for this annotation

GitHub Actions / OTP 24.x / Elixir 1.15.x

variable "status" is unused (if the variable is not meant to be used, prefix it with an underscore)

Check warning on line 380 in test/grpc/integration/server_test.exs

View workflow job for this annotation

GitHub Actions / OTP 25.x / Elixir 1.15.x

variable "status" is unused (if the variable is not meant to be used, prefix it with an underscore)

Check warning on line 380 in test/grpc/integration/server_test.exs

View workflow job for this annotation

GitHub Actions / OTP 26.1.x / Elixir 1.15.x

variable "status" is unused (if the variable is not meant to be used, prefix it with an underscore)

Check warning on line 380 in test/grpc/integration/server_test.exs

View workflow job for this annotation

GitHub Actions / OTP 24.x / Elixir 1.12.x

variable "status" is unused (if the variable is not meant to be used, prefix it with an underscore)
end
Expand Down Expand Up @@ -428,7 +428,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 @@ -540,6 +540,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 @@ -551,6 +552,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 7dc28cd

Please sign in to comment.